I want to call a javascript function when a user closes a popup window (I'm not doing anything evil. I just want to clear out some session stuff)... but NOT when that window is reloaded. In IE I can use onunload to do it. But in Firefox it runs whenever the window is reloaded. Any idea how to rig it?
People succeed in answering ParagramStudios's questions 26% of the time (9 successes in 34 attempts).
Answers by: darksanity | vlambert | speed
This is actually very easy in firefox its just
window.onUnload = function() { //code here }
does this help?
nah, but thanks for trying. but you ought to actually try code before suggesting it if you want to open up the skrilla faucet on guruza.
skrilla faucet?
Again... posting on guruza w/o a simple googling.
Cash flow.
Best to you and yours.