PDA

View Full Version : x - shut down the window



hantz
10-30-2007, 07:11 PM
i started to use onunload="displayContent00()"
but than i realized that it not shoots only when the user click on X
but it shoots every time page being refreshed or skiping to another page too...
can someone help me solve this one?
i need something that shoots only when the window being closed with the X
:confused:

tech_support
10-31-2007, 06:54 AM
Stick

jscheuer1
10-31-2007, 07:25 AM
I don't think there is a window.onunloadOnlyFromX() method or anyway to determine that the window is being closed as opposed to simply the page being unloaded. Even with onunload, different browser see it differently, firing it only under certain circumstances.