usually, I've used the onclose function to open another window which then
calls the server and tells it to shut the session down. That way it doesnt
get lost by the window closing.
however youre still pretty hosed when they just browse to another site but
you can run your app in a window without location controls to prevent this.
You need to test this in every conceivable browser on every platform to be
sure its good though.
DRE
-----Original Message-----
From: Lyons, Larry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 1:08 PM
To: CF-Community
Subject: RE: _javascript_ Window Close HELP please
Try giving them a specific link that calls your function.
<a href = "">
Otherwise try an onunload attribute in the body tag, although that may not
work if the person just closes the window.
larry
> -----Original Message-----
> From: brobborb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 10, 2004 3:01 PM
> To: CF-Community
> Subject: _javascript_ Window Close HELP please
>
>
> hey guys i've been searchin on how to call a function when a
> window closes. All i can find is how to close a window with
> _javascript_. The thing is I have to set some user flags to
> log out when they close the window I am not going to go to a
> typical pron site and view source. Please help! :)
>
>
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: Javascript Window Close HELP please Lyons, Larry
- RE: Javascript Window Close HELP please Harkins, Patrick
- RE: Javascript Window Close HELP please Ben Densmore
- Andre Turrettini