title: Can not close html5 application (wrapped on Phonegap)
body: <p>I have an application built in html5 and wrapped in phoneGap, by pressing the exit button the following function occurs:</p>
  
  <pre><code>function close_window() {
      if (confirm("Exit?")) {
          navigator.app.exitApp();
      }
  }
  </code></pre>
  
  <p>It does not work..</p>
  
  <p>On clicking the button the function close_window() occurs, 'but navigator.app.exitApp();' line not works.</p>
  
  <p>I think it's because there is no child named app for navigator.. (I tested it in console)</p>
  
  <p>Are there other ways to close an application?</p>