View Single Post
  #2 (permalink)  
Old 10-01-06, 03:47 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
There is no such event.
The alert you get when closing a page which has not been opened by JavaScript does not return anything, (it's not scriptable since it's a security measure) so it's not possible to know which button was pressed.

You could make the client poll your server every minute or so to tell the server it's still there. Kinda like what Gmail does when it asks the server for new mail using httpRequest.
But that would generate extra traffic, and you'd still need a timeout of some sort. And scripting might be disabled on the client, fooling your server into thinkin that the client has already closed the window...

And so on...
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote