Question

When a user navigates away from my page the onBeforeUnload event triggers a confirmation box to be displayed to the user. At this point is there a method by which I can capture the URL that the user is navigating to?

Was it helpful?

Solution

Ditto AnthonyWJones. The language has been limited in this regard intentionally for security/privacy reasons.

OTHER TIPS

No. That could potentially give info away to an unauthorized party.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top