'onUnload' Example : onUnload « Event Handlers Reference « JavaScript Reference

'onUnload' Example

    
<html>
<body onunload="alert('Exiting the page!')">
</body>
</html>

    
      
      

Related examples in the same category

1.'onUnload' Syntax and Note
2.'onUnload' Properties
3.'onUnload' is applied to