Lou
Lou

Reputation: 68

Capturing URLs within the beforeunload event

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

Answers (2)

Mark
Mark

Reputation: 2071

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

Upvotes: 0

AnthonyWJones
AnthonyWJones

Reputation: 189457

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

Upvotes: 2

Related Questions