Adalat  Khan

Adalat Khan

  • 892
  • 1.2k
  • 192.4k

The Window.close Method not working in Chrome and Firefox

Jul 14 2019 3:45 AM
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)