Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: testing on page unload


Message #1 by "Tom McNeer" <tom@m...> on Thu, 2 May 2002 17:21:02
--part1_a.1e59e040.2a030b88_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

is this what you mean if a user exits a page?
you could try something like this

this is just a fast put to gether script so 
you may have to edit it some more but it
might give you some ideas

<BODY LANGUAGE="javascript" onunload="return exit()">

<SCRIPT LANGUAGE="javascript">

function exit():
{
alert("you are now leaving");
}

</SCRIPT>


  Return to Index