Skip to main content

Can we access the URL of next request of browser in prevailing HTML page 's unload function



As Html code resides until new url request's response doesn't come .Then Browser calls BeforeUnload and Unload function.





This means anywhere in the browser, the url is residing which has been hit for unloading the current one. So is there any way we can get that (new) URL in the Unload function?





Actually My scenario is that I want pop up to be opened for providing the other options when user has just hit another URL which doesn't resemble to our domain , showing that he want to go out from our site.


Comments

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?