X
Tap here to go to the mobile version of the site.

Support Forum

how close broswer window use js code??

Posted

hi everyone. My job web developer. I've been given a mission. I have to close the browser window using JavaScript. But for security reasons, window.close () seems to be clogged. Is there any other way to end the browser window? Is there a setting that can end the browser window? It is very important to me. please answer about my question.

hi everyone. My job web developer. I've been given a mission. I have to close the browser window using JavaScript. But for security reasons, window.close () seems to be clogged. Is there any other way to end the browser window? Is there a setting that can end the browser window? It is very important to me. please answer about my question.

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0

More Information

Shadow110 1072 solutions 14836 answers

Hi, is beyond me on that but what about trying a Script to shut it down through Windows Task Manager (if possible). You may want to check a Windows forum for that info.

https://developer.mozilla.org/en-US/docs/Web/API/Window/close http://www.yournewdesigner.com/css-experiments/javascript-window-close-firefox.html Maybe need to ask again here for 57+ https://stackoverflow.com/questions/31981848/window-close-not-working-in-firefox

I am not finding anything fince the release of ver 57 Nov14th 2017 Stackoverflow would be the best place to ask.

Hi, is beyond me on that but what about trying a Script to shut it down through Windows Task Manager (if possible). You may want to check a Windows forum for that info. https://developer.mozilla.org/en-US/docs/Web/API/Window/close http://www.yournewdesigner.com/css-experiments/javascript-window-close-firefox.html Maybe need to ask again here for 57+ https://stackoverflow.com/questions/31981848/window-close-not-working-in-firefox I am not finding anything fince the release of ver 57 Nov14th 2017 Stackoverflow would be the best place to ask.
cor-el
  • Top 10 Contributor
  • Moderator
17575 solutions 158975 answers

Helpful Reply

You can only close a window via JavaScript if that window has been opened via JavaScript (window.open())

You can only close a window via JavaScript if that window has been opened via JavaScript (window.open()) *https://developer.mozilla.org/en-US/docs/Web/API/Window/close