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
<html> <body onUnLoad='alert("Please do not leave!")'></html>