Possible Duplicate:
window.close() doesn’t work on Firefox, any work around?
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:
$('#btnCloseBrowser').click(function () {
// close();
// this.close();
// window.parent.close();
// window.close();
// self.cose();
window.setTimeout("window.close()", 1000);
});
});
// close(); // this.close(); // window.parent.close(); // window.close(); // self.cose();
This works for IE but not work for FIREFOX,CHROME