View Single Post
  #2 (permalink)  
Old Aug 23rd, 2007, 10:23
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,801
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Detecting form navigation

Put a function for unload:
<body onunload="leavingPage()">

then the function:
<script type="text/javascript">
/* put what you want to happen when the user leaves */
alert(you are leaving)
</script>

should work
Reply With Quote