title: Closing a mobile browser tab with javascript
body: <p>I need a native app to fire a browser with some URL that will take the user to a mobile website. Inside the mobile website, there has to be a button that closes the browser (or sends any signal to the native app) so that the user gets back to the native app. Currently I'm trying to close the window, but I don't think that's gonna do the trick in all mobile devices.</p>
  
  <p>My code:</p>
  
  <pre><code>$( document ).bind('pageinit', function(){
     $.mobile.activePage.find('#close').click(function(){
        window.open('', '_self', ''); 
        window.close();
     });
  });
  </code></pre>
  
  <p>I'm using jQuery mobile.</p>