title: Javascript - On android, how to close google chrome browser window?
body: <p>On Android i have Google chrome browser window open from my Java app. On that page i have following javascript to close the browser window so that it can go back to my Java app.</p>
  
  <pre><code>function die() {
    //window.close();  ------ FAIL
    //window.history.back();  ------ FAIL
    //open(location, '_self').close();   ------ FAIL
    $('body').html('&lt;h1&gt;Session closed, i cant help you to close via JavaScript it sucks. Press the back button manually. Yes it stupid but thats the only way?&lt;/h1&gt;');
    return false;
  }
  </code></pre>
  
  <p>But above window.close or other options are not working. How do i close the browser window in such case?</p>