...

View Full Version : Window Help



mushand
12-14-2007, 05:56 PM
I have need to check if the user has clicked the "X" on the top right of the window to close it.

basicly what I want is

if windowwasclose = true
dostuff()
else
dosomethingelse()

Any Suggestions

Zefris
12-14-2007, 06:04 PM
You can use "onunload" event handler... or listeners...

window.onunload = function () { /* do stuffs... */ }



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum