3 ms·
I said to myself "man, isn't there a way to catch the tab close event in JS"? And, lo, Google provides: http://stackoverflow.com/questions/138411/catching-a-ta
by mechanical_fish 16y ago
I said to myself "man, isn't there a way to catch the tab close event in JS"? And, lo, Google provides:
http://stackoverflow.com/questions/138411/catching-a-tab-close-event-in-web-browser http://stackoverflow.com/questions/138411/catching-a-tab-clo...
Mind you, I'm not the one who is going to have to debug this stupid idea cross-browser, so please forgive the suggestion if it turns out to be stupid. ;)
- troutwine 16y agoAnd a Jquery specific question/answer, as I note that our friend is using that library: http://stackoverflow.com/questions/1631959/browser-window-close-event http://stackoverflow.com/questions/1631959/browser-window-cl...
- awt 16y agoI believe that onbeforeunload always prompts the user with a popup, which may be why I left it out -- can't quite remember. I will re-evaluate that decision.