<BODY ...>
onUnload ="script command(s)"
onUnload runs a script when the reader leaves the page. For example, this code brings up an alert box when the user leaves the page:
onUnload
<BODY onUnload="alert('bye now!')">
<BODY onFocus="..."> >>>
<BODY onFocus="...">