title: How to disable Back button in IE and firefox?
body: <h3>Duplicate:</h3>
  <blockquote>
  <ul>
  <li><a href="https://stackoverflow.com/questions/87422/disabling-back-button-on-the-browser">Disabling Back button on the browser</a></li>
  <li><a href="https://stackoverflow.com/questions/54539/prevent-use-of-the-back-button-in-ie">Prevent Use of the Back Button (in IE)</a></li>
  </ul>
  </blockquote>
  <hr />
  <p>I have to disable back and forward button of browser ( IE and Firefox both ).
  I have tried:</p>
  <pre><code>//disable back button
  window.onbeforeunload= function() { }   
  window.history.forward(1);
  </code></pre>
  <p>but this works only in IE.<br />
  Is there any foolproof solution?</p>