Is there a way to retrieve the address bar value when a user attempts to leave my website and navigate to another page?
I am specifically not seeking the value stored in window.location, as that only pertains to the current page the user is on. I want to capture the destination site the user is trying to visit.