title: how to stop a webpage from loading on clicking back button?
body: <p>I m trying to disable a page from loading on click of back button after it is redirected to some certain pages. I have used onunload event but it stops loading of the page after visiting any page.</p>
  
  <pre><code>&lt;script type = "text/javascript" &gt;
  
  function preventBack() {
      window.history.forward();
  }
  setTimeout("preventBack()", 0); 
  window.onunload = function() {
      null
  };
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Also suggest if i could use window.stop(); Any help will be appreciated.</p>