Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cancelling onUnload when button is clicked

Status
Not open for further replies.

robertd18

Technical User
Jan 14, 2003
32
US
How do i do this
 

<head>
<script language=javascript>
var EnableUnloadFunction = true;

function fUnload()
{
if (EnableUnloadFunction) {
(your statements....)
}
}
</script>
</head>
<body onUnLoad=&quot;fUnload()&quot;>

<input type=button value=&quot;diable onunload function&quot; onclick=&quot;EnableUnloadFunction = false;&quot;>

</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top