Example of onUnload Event Handler | WebReference

Example of onUnload Event Handler

Example of onUnload Event Handler

Look what happens when you try to leave this page...