How to Close a Browser Window Without Receiving the "Do You Want to Close This Window" Prompt

Close a browser window without receiving the Do you want to close this window prompt

I think what you are browsing should be an http website instead of https.

If you are sure that this website is safe, you can try to modify the security settings:

IE tools -> Internet options -> Security -> Trusted sites -> Sites -> Uncheck option Require server verification (https:) for all sites in this zone

Adding http://xx.xxx.com(the website url you accessed) to trust site list.

Is it possible to close a browser window using javascript?

The reason it was not working in fire fox was due to some settings in the fire fox.

Please set your firefox browser:

1.input "about:config " to your firefox address bar and enter;

2.make sure your "dom.allow_scripts_to_close_windows" is true

window.close is now working in fire fox too.

Is It possible to close window without the alert?

if you are talking about window.open() function then just try to use window.close()

Do not close window after clicking 'X' button?

[https://stackoverflow.com/questions/2923139/prompt-user-before-browser-close]

this is the basic way to do
but prompt will be always the same

window.onbeforeunload = function(evt) {
return true;
}

How to close browser tab

window.close method is only allowed to be called for windows that were opened by a script using the window.open method.



Related Topics



Leave a reply



Submit