Attribute for <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:

this code produces this
<BODY onUnload="alert('bye now!')">
this page





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.