Because it can’t be done. The new location is private/sensitive information.
Nobody wants you to know which sites they visit when they leave your site.
More Related Contents:
- Capturing result of window.onbeforeunload confirmation dialog
- How To Display Images Preview and Title When I Paste in Another Site Like Facebook, Whatsapp, etc
- window.onload vs $(document).ready()
- Detect Click into Iframe using JavaScript
- Prevent form submission on Enter key press
- Firing event on DOM attribute change
- Get the values from the “GET” parameters (JavaScript) [duplicate]
- How to create query parameters in Javascript?
- How do I programmatically click on an element in JavaScript?
- Callback on CSS transition
- Handle URL fragment identifier (anchor) change event in Javascript
- Create a file using Javascript in Chrome on client side
- How to know whether refresh button or browser back button is clicked in Firefox [duplicate]
- Detect if HTML5 Video element is playing [duplicate]
- Perform action when clicking HTML5 datalist option
- Redirecting to a relative URL in JavaScript
- Fire tab keypress event in JavaScript?
- How to Clear/Remove JavaScript Event Handler?
- Usage of Hash(#) in URL
- Relative URLs in AJAX requests
- How do I URl encode something in Node.js?
- Popstate on page’s load in Chrome
- Implementing events in custom object
- How do I listen for triple clicks in JavaScript?
- Fire oninput event with jQuery
- How to assign a domain name to node.js server? [duplicate]
- Handle refresh page event with JavaScript
- Is triggering event listeners using “.click()” asynchronous?
- How to to initialize keyboard event with given char/keycode in a Chrome extension?
- What is the difference between Event.target, Event.toElement and Event.srcElement?