Closing the browser window via JavaScript.
To close a browser window use the following JavaScript code. For Internet Explorer:
window.opener=self;window.close();
And for Firefox use:
window.open('','_parent','');window.close();
Closing the browser window via JavaScript.
To close a browser window use the following JavaScript code. For Internet Explorer:
window.opener=self;window.close();
And for Firefox use:
window.open('','_parent','');window.close();