Reputation: 68
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?
Upvotes: 0
Views: 739
Reputation: 2071
Ditto AnthonyWJones. The language has been limited in this regard intentionally for security/privacy reasons.
Upvotes: 0
Reputation: 189457
No. That could potentially give info away to an unauthorized party.
Upvotes: 2