title: JQuery Mobile, redirecting by window.location prevents pageshow event
body: <p>I have a JQuery Mobile application with many pages linked to each other.
  If I put a link on page A and set the href to page B, this script works fine:</p>
  
  <pre><code>$(document).on('pageshow','#pageB',function(){
      alert('hello!');
  });
  </code></pre>
  
  <p>But if I put a button on page A and write this code for onclick event:</p>
  
  <pre><code>window.location="pageB.html";
  </code></pre>
  
  <p>The pageshow event won't raise anymore!
  Where's the problem? How can I use window.location and still be able to catch the pageshow event?</p>