Skip to content

Instantly share code, notes, and snippets.

@Calvein
Created October 3, 2011 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Calvein/1258708 to your computer and use it in GitHub Desktop.
Save Calvein/1258708 to your computer and use it in GitHub Desktop.
$(window).unload(); does not seem to work on the lastest Chrome build (14.0.835.186 Ubuntu)
The simple test on the exemple page does not work on Chrome
`$(window).unload( function () { alert("Bye now!"); } );`
It fired an error : "Blocked alert('Bye now!') during unload."
I can't find if it's a Chrome or jQuery bug or if it's a security thing.
But it works fine on Chromium 13.0.782.41 Ubuntu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment