title: How to swipe back from one html page to another with jquery mobile
body: <p>Im working on a jquery mobile project. I have two html pages. From index.html i have a swipeleft event to page.html and it works fine. From page.html i want to swiperight so i come back to index.html but that won't work.</p>
  
  <p>The code works fine if i swipe between internal pages inside a single document, but not between html pages. And i need to use several html pages.</p>
  
  <p>Has anyone got this to work? Would be grateful for answers.</p>
  
  <p>This i my swipe code in my index.html page:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
  
  $("#main").bind('swipeleft',function(event, ui){
          $.mobile.changePage("page.html", "slide");
  })
  
  })
  &lt;/script&gt;
  </code></pre>
  
  <p>And this is my code for my page.html:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
  
  $("#main").bind('swiperight',function(event, ui){
          $.mobile.changePage("index.html", "slide");
  })
  
  })
  &lt;/script&gt;
  </code></pre>