Skip to content

Instantly share code, notes, and snippets.

@amad
Created November 1, 2013 12:31
Show Gist options
  • Save amad/7264752 to your computer and use it in GitHub Desktop.
Save amad/7264752 to your computer and use it in GitHub Desktop.
non standard event for detect user leaving
window.onbeforeunload = function() { return "Message"; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment