title: How to disable the browser's back, forward and refresh buttons?
body: <p>I want to disable the browser's navigation buttons: back, forward and refresh. This is for students taking a quiz using with jQuery.</p>
  
  <p>I have tried the following code but it's not working:</p>
  
  <pre><code>window.history.forward();
  function preventBack() { window.history.forward(1); }
    function disableBackButton() {
    window.history.forward();
  }
  setTimeout("disableBackButton()", 0);
  </code></pre>