Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

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

Copyright 1997-2002 Idocs Inc.