View Full Version : User exit detection

06-11-2004, 07:20 PM
Is there a way to detect when the user leaves, like 'window.onExit' or something?

Willy Duitt
06-11-2004, 08:07 PM

06-11-2004, 08:29 PM
I just made this ping pong style game and I thought maybe it would work to call a cookie function and store the current score as the user left. Though of course when he leaves he is gone, just thought of it since calling such a function wouldnt take more than.. well not very long...

Anyway I found another way to do it

06-11-2004, 09:21 PM
onUnLoad perhaps?