Posted By

level09 on 05/20/10


Tagged


Versions (?)

execute js when user navigates away / closes the browser window


 / Published in: JavaScript
 

  1. $(window).bind('beforeunload', function() {
  2. if (iWantTo) {
  3. return 'you are an idiot!';
  4. }

Report this snippet  

You need to login to post a comment.