Backbutton Overloading

Written by on December 22nd, 2006 in Ajax News.

Mario Heiderich wonders if being able to do this is a bad thing:

JAVASCRIPT:

  1.  
  2. window.onunload = function(){ location.replace(document.location); };
  3.  

With this one line of code (test page here) you can keep a user around against their will, other than killing that tab/window.

Source: Ajaxian
Original Article: http://ajaxian.com/archives/backbutton-overloading

Leave a Reply

You must be logged in to post a comment.



Site Navigation