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
Firing Event on Dom Attribute Change
How Does Basic Object/Function Chaining Work in JavaScript
Casperjs/Phantomjs Doesn't Load Https Page
React Useeffect in Depth/Use of Useeffect
Implementing Pagination in Mongodb
How Does the New Operator Work in JavaScript
Msie and Addeventlistener Problem in JavaScript
Parsing "Relaxed" JSON Without Eval
Settimeout and "This" in JavaScript
Why Can't I Add Properties to a String Object in JavaScript
Url Hash-Bang (#!/) Prefix Instead of Simple Hash (#/) in Angular 1.6
How to Check If a JavaScript Object Is a Dom Object
React Useeffect in Depth/Use of Useeffect
How to Listen to the Form Submit Event in JavaScript
Get Hours Difference Between Two Dates in Moment Js