Skip to main content

Can we capture the same browser closing event without using “onunload”



Actually using the window.close , we can control whether browser is closed or not, but it works only for pop-ups created by the browser.





So, are there any ways to listen to the closing event of the browser without using onunload ? Because we don't want things to be executed when back , refresh or forward actions occur.





Please also reply if you know specifics regarding Firefox.





Thanks in advance!


Comments

  1. You are trying to manipulate the EXPECTED behaviour of the browser, essentially taking away people's ability to navigate. Fortunately browser developers were smart enough to disallow this - so the answer is NO.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?