'onBeforeUnload' Syntax and Note : onBeforeUnload « Event Handlers Reference « JavaScript Reference

'onBeforeUnload' Syntax and Note

Note:
    
This event fires before the document is unloaded. 
The document is unloaded when the user 
     1)navigates to a different URL   or 
     2)attempts to close the browser window.
    



      
      








Related examples in the same category

1.'onBeforeUnload' Example
2.'onBeforeUnload' Properties
3.'onBeforeUnload' is applied to