hi there,
I have a window.onbeforeunload function, and I want to detect where I will get redirected to...
any ideas?
Markus
hi there,
I have a window.onbeforeunload function, and I want to detect where I will get redirected to...
any ideas?
Markus
You can't. It would be a security hole if you could.
If you want to find out where the user is going, then:
Linking to a redirect page on your own server is the simplest way to achieve this, buy be careful not to produce an open system that any spammer can relay people though to disguise their spam links.