An onUnload Example

You can use an onUnload in the BODY tag to automatically do something as the page is unloading. For this example I load an Alert Box which is created in the following function:
function postMessage()
  alert("Loaded with an onUnload in the BODY tag.");
which is called from within the BODY tag:
<BODY onUnload="postMessage()" bgColor="#00ffff">

Click either button or load another example to test...

An onUnload Example
by Tim Wallace