Introduction: Be a Jerk. Use Javascript to Disable Your Website Visitor's Back Button

Javascript has a little know property called location.hash that can be "mis"used to disable the browser back button. In this Instructable, I will show you how to accomplish this and be a jerk just like me.

Step 1: And the Code...

Add the below to any webpage, then try your back button.
<script>
  i=0;
  while(i<100){
     location.hash = i;
     i++;
  }
</script>

You can try it here too by replacing what's in your browser address bar with:
javascript: i=0;while(i<100){location.hash = i;i++;}void(0);

Fun right? Now go out and be jerk.