You could force a poop-up by using the following code:
<head>
<script language="JavaScript">

<!-- begin x-it code
var exit=true;
function xit()
{
if (exit)
open("http://www.yourdomain.com/exitpage.html","Exit","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=0,target=_blank";);
}
// end x-it code -->

</script>
</head>

and don't forget to add...

<BODY onunload="xit()">

and on any links in the BODY which don't lead to the user exiting your 
site, include

<a href="this.taf" onClick="exit=false">


The http://www.yourdomain.com/exitpage.html in the javascript between the 
head tags, should lead to your page which forces the user to Logout. This 
link, of course would have a onClick="exit=false" added to it so that they 
wouldn't end back at the forced Logout page.

This should work in all javascript enabled browers.
Garth


At 10:24  20/08/02 -0400, you wrote:
>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

Reply via email to