2
Answers

The Window.close Method not working in Chrome and Firefox

Adalat  Khan

Adalat Khan

5y
10.1k
1
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 
Answers (2)