Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Re: Netscape 4.7, why it doesn't fire onunload event in tag


Message #1 by "Hariharan" <hariharan_m2001@r...> on Wed, 4 Apr 2001 05:12:13
Hi 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>

  Return to Index