Hi David,
It appears the ONBEFOREUNLOAD event is supported in the FRAMESET element
for MSIE.
Try:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>onbeforeunload Sample</TITLE>
<SCRIPT>
function closeIt()
{
event.returnValue = "Any string value here will force a dialog box to
appear before closing the window.";
}
</SCRIPT>
</HEAD>
<FRAMESET COLS="50%, 50%" ONBEFOREUNLOAD="closeIt()">
<FRAME SRC="http://witango.org">
<FRAME SRC="http://witango.org">
</FRAMESET>
</HTML>
Hope this helps. Cheers...
Scott Cadillac
VP, Research and Development
Plus International Corp.
604-469-6543
[EMAIL PROTECTED]
http://www.plusinternational.com
Vancouver, BC, Canada
Does your company have an Enterprise Information Portal? Check out Salsa at
www.plusinternational.com/flash/salsa.htm
----- Original Message -----
From: "David Green" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 7:24 AM
Subject: Witango-Talk: [OT... kind of] Javascript Question
> Hello all,
>
> I have a intranet site where when users login, they are directed to a
> frames based page. This gives them a drop down menu in the top frame
> and the other being the body frame. What I want to do is force the user
> to logout using the drop down menu instead of just closing the browser.
> I just want to give the user an error like alert('Please choose logout
> from the menu');
>
> I'm using IE 5.0 and above. I'm trying to use the onBeforeUnload
> function but still not getting exactly what I want. I'm not sure if
> it's because of the frames or not, but the browser ignores the body tag
> on the parent page.
>
> Any help is greatly appreciated!
>
> Thanks,
>
> Dave Green
> [EMAIL PROTECTED]
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body