Mega Code Archive

 
Categories / JavaScript Tutorial / Window
 

Window onUnLoad

The onUnLoad event handler is fired when the page is unloaded. This occurs when the user leaves the page for another page. The onUnLoad event handler in a document will fire before an event handler loaded in the tag. <html>     <body onUnLoad='alert("Please do not leave!")'> </html>