Shawn Moore
06-29-2000, 01:08 AM
Hi,
I have an IE5 based intranet application that needs to capture the onUnload or onBeforeUnload event and ask the end-user if this is the desired action.
Between the <HEAD> tags I have:
<script language="JavaScript">
<!--
function closeconfirmation() {
event.returnValue = " WARNING! ";
}
</script>
And in the <Body> tag I have:
onBeforeUnload="closeconfirmation()"
The problem I'm having is I have several popup windows open on the page. See? Everytime one of these functions is called my onBeforeUnload event is triggered. This is not a desirable effect.
Does anyone have a suggestion on how to correct this issue?
thanks
I have an IE5 based intranet application that needs to capture the onUnload or onBeforeUnload event and ask the end-user if this is the desired action.
Between the <HEAD> tags I have:
<script language="JavaScript">
<!--
function closeconfirmation() {
event.returnValue = " WARNING! ";
}
</script>
And in the <Body> tag I have:
onBeforeUnload="closeconfirmation()"
The problem I'm having is I have several popup windows open on the page. See? Everytime one of these functions is called my onBeforeUnload event is triggered. This is not a desirable effect.
Does anyone have a suggestion on how to correct this issue?
thanks