0

I want to track the new url being entered in the browser when the user leaves the current page in the onunload event.

If the user is browsing www.xyz.com/page1.aspx and suddenly he types a new URL in the browser, I want to get the new url typed in the onunload event. Is that possbile ?

Vinay
  • 221
  • 1
  • 6
  • 13
  • possible duplicate of [How can i get the destination url in javascript onbeforeunload event?](http://stackoverflow.com/questions/1686687/how-can-i-get-the-destination-url-in-javascript-onbeforeunload-event) – Gabe Mar 04 '11 at 05:36
  • Not only is this a duplicate question, but there is no answer. – Gabe Mar 04 '11 at 05:37

1 Answers1

0

FYI. Someone else asked similar question.

How can i get the destination url in javascript onbeforeunload event?

Get url for the page being opened next in window.onunload event

Community
  • 1
  • 1
ahgood
  • 1,847
  • 20
  • 19