Advertisement
falkirks

Destroy BACK Button JS

Apr 18th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <script>
  3. var theURL = document.URL;
  4.  
  5. i = 0;
  6. nukeBackButton = setInterval("addAFragment()", 1);
  7.  
  8. function addAFragment() {
  9. if (i > 300) {
  10.  clearInterval (nukeBackButton);
  11. }
  12. window.location.hash = "#fragment" + i;
  13. i++;
  14. }
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement