title: How to remove current page from Jquery Mobile history?
body: <p>Is there a way to remove the current page (page being navigated away from) from the Jquery Mobile history? Setting changeHash:false seems to remove the incoming page from the history.</p>
  
  <p>Here is an example:</p>
  
  <p>Page 1</p>
  
  <pre><code>&lt;div data-role="page"&gt;
    &lt;div data-id="fixedheader" data-role="header" data-position="fixed"&gt;
      &lt;h1&gt;Page 1&lt;/h1&gt;
    &lt;/div&gt;
    &lt;div data-role="content"&gt;
      &lt;button onclick="$.mobile.changePage('page2.html',{changeHash:false});"&gt;Page 2&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Page 2</p>
  
  <pre><code>&lt;div data-role="page"&gt;
    &lt;div data-id="fixedheader" data-role="header" data-position="fixed"&gt;
      &lt;h1&gt;Page 2&lt;/h1&gt;
    &lt;/div&gt;
    &lt;div data-role="content"&gt;
      &lt;button onclick="$.mobile.changePage('page3.html',{changeHash:true});"&gt;Page 3&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Page 3</p>
  
  <pre><code>&lt;div data-role="page"&gt;
    &lt;div data-id="fixedheader" data-role="header" data-position="fixed" data-add-back-btn="true"&gt;
      &lt;h1&gt;Page 3&lt;/h1&gt;
    &lt;/div&gt;
    &lt;div data-role="content"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I want is that when on Page 3, clicking the back button goes to Page 2 and that it is not possible to go back to Page 1.</p>
  
  <p>What happens is that clicking from Page 1 to Page 2 to Page 3, on Page 3 the back button goes directly back to Page 1. </p>
  
  <p>Also if I put data-add-back-btn="true" on Page 2, it shows a back button but clicking it does nothing. </p>