I am closing a current browser window when i click on button. Following is my Javascript code in button click:
function CloseApplication() {
window.open("", "_self").close(); //It work only in Internet Explorer
}
My above code is working only in Internet Explorer but it does not work in Chrome and Firefox. Please give me any solution of this so that i can close browser window in Chrome also. Thanks


Raghavendar SwaminathanRank #788 · 2.9K reputationPosted Jul 14, 2019, 1:06 AM EDT
Priyanka JainRank #356 · 7K reputationPosted Jul 14, 2019, 9:46 AM EDT