IE stop message “the web page you are viewing is t

2019-07-08 15:47发布

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?

2条回答
Deceive 欺骗
2楼-- · 2019-07-08 16:24

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 :)

查看更多
趁早两清
3楼-- · 2019-07-08 16:25

There are some interesting workarounds on this question, basically revolving around inserting a window.open() somewhere into the sequence.

Bypass IE "The webpage you are viewing..." pop up

查看更多
登录 后发表回答