window.onUnLoad : Window Object : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » Window Object »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object