title: Disabling browser back button for specific url
body: <p>I want to disable the browser back button or say don't want to allow the user to navigate back from a specific url. Suppose the url is:</p>
  
  <pre><code>http://localhost/emptracker/#setup
  </code></pre>
  
  <p>So what I want it when user comes to this url the back button should get disabled. For now I read many Stack Overflow post and tried solutions like this </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      history.pushState(null, null, 'pagename');
  
      window.addEventListener('popstate', function(event) {
          history.pushState(null, null, 'pagename');
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>But the problem is that it disables the back button for the urls across the application and I want to do it for a specific url. My application is based on backbonejs.</p>