Web HTML-HTML.com
You are here: HTML > Document Tags > <BODY ...>

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

<BODY onFocus="..."> >>>

          

Copyright © 2002-10 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com