Skip to content

Instantly share code, notes, and snippets.

@richardbenson
Created May 31, 2011 14:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardbenson/1000605 to your computer and use it in GitHub Desktop.
Save richardbenson/1000605 to your computer and use it in GitHub Desktop.
A supplier put this on their interface. There are no words to describe how stupid this is, especially on a page that links a number of other pages INCLUDING EXTERNAL SITES.
function preventBack(){
try{
history.forward();
setTimeout('preventBack()', 500);
}catch(e){}
}
preventBack();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment