html_code_clinic thread: Re: Netscape 4.7, why it doesn't fire onunload event in
tagHi Don,
I think ur problem will be solved by writing an onBlur event for BODY.
Check out the following piece of code & test out the amazing results!!!-
<HTML>
<HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function inn()
{
alert("Loading the body")
}
function outt()
{
alert("Unloading the body")
}
function exitt()
{
alert("Exiting the body")
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="inn();" onUnload="outt();" onblur="exitt();">
<!-- Use onblur of body for exiting......--->
<FORM action="" method=POST id=form1 name=form1>
<input type="text" value="22">
</FORM>
</BODY>
</HTML>