Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE stop message “the web page you are viewing is trying to close the tab.."

I have a script on page that will close the web page but when it does that I am getting this pop up message “the web page you are viewing is trying to close the tab. Do you want to close this tab?”

I want to suppress this message. I am using IE and done following settings In IE Tools/Internet Options/Security/(select) Internet Zone> (click) Default Level.

Or, Internet Options>/Security> (select) Internet Zone> Custom> Scripting> Active scripting> Enable. Both the settings didn’t worked for me and I am still getting the message. How can I prevent this?

like image 743
user2132017 Avatar asked Nov 25 '25 04:11

user2132017


1 Answers

The webpage you are viewing is trying to close this window warning in Internet Explorer

This is a old question and in the awnsers also lays your awnser i quote:

"Javascript can close a window if a javascript code opens it."

Otherwise, it can't. It is just a security feature. I hope i helped :)

like image 110
Arjen van Heck Avatar answered Nov 27 '25 19:11

Arjen van Heck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!