Skip to content

The unload docs have incorrect examples. #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mgol opened this issue Nov 28, 2013 · 1 comment
Closed

The unload docs have incorrect examples. #388

mgol opened this issue Nov 28, 2013 · 1 comment

Comments

@mgol
Copy link
Member

mgol commented Nov 28, 2013

The page under http://api.jquery.com/unload/ shows an example with alert which no longer works (in Chrome, Firefox) due to browser changes. The only allowed thing to do in the beforeunload handler are returning a string.

Originally reported as a jQuery bug: http://bugs.jquery.com/ticket/14559

@arthurvr
Copy link
Member

@mzgol Just opened a PR: #639.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants