title: Disable Browser Back Button and Solve refresh error in JSP
body: <p>I want to disable browser back button. So I used below code</p>
  
  <pre><code>  &lt;script type = "text/javascript" &gt;
          history.pushState(null, document.title, location.href);
          window.addEventListener('popstate', function () {           
              history.pushState(null, document.title, location.href);
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>It was disable browser back button but Afert submit a page and refresh that page there was a error. page not found.</p>