title: how to close the browser window
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1754374/window-close-doesnt-work-on-firefox-any-work-around">window.close() doesn’t work on Firefox, any work around?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to close the current browser window when click on the button using jquery. I tried many ways, but they do not work for all browsers: My code is:</p>
  
  <pre><code>$('#btnCloseBrowser').click(function () {
  //                close();
  //                this.close();
  //                window.parent.close();
  //                window.close();
  //                self.cose();
  
              window.setTimeout("window.close()", 1000);
      });
  });
  </code></pre>
  
  <p>// close(); // this.close(); // window.parent.close(); // window.close(); // self.cose();</p>
  
  <p>This works for IE but not work for FIREFOX,CHROME</p>