View Single Post
  #7 (permalink)  
Old 08-05-03, 10:15 PM
BuildHome BuildHome is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Israel
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
This code will work:

Code:
<html>
<head>

<script language="javascript">
function mymessage()
{
alert("This message was triggered from the onunload event");
}
</script>
</head>

<body onunload="mymessage()">

<p>close this window and watch the warning box come up!</p>
</body>

</html>
Reply With Quote