如何以编程方式禁用浏览器中的弹出窗口 [英] how to disable pop up window in browser programatically

查看:75
本文介绍了如何以编程方式禁用浏览器中的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在asp.net应用程序中打开新窗口,但是在执行程序后,浏览器显示它被阻止.
有什么办法可以使用C#或javascript来解除对它的封锁?
如果有人知道,那么请.帮助.

在此先感谢



I am opening new window in asp.net application but after execution of program- browser shows it as blocked.
Is there any way to unblock it programatically using c# or javascript?
if anybody knows it then pls. help.

Thanks in advance

推荐答案

如何以编程方式禁用浏览器中的弹出窗口
如果可能的话,弹出窗口阻止程序和广告阻止程序的用途是什么?这是提供给最终用户以根据自己的意愿和需要进行设置/配置的功能.

AFAIK,如果有明显的违反安全性设置的原因,则无法取消阻止用户设置的弹出式设置.
how to disable pop up window in browser programatically
If it was possible, what would be the use of popup blockers and ad blockers? This is a feature provided to end user to set/configure as per their wish and need.

AFAIK, there is no way to unblock the popup settings set by user with obvious reason of breaching security settings if allowed.


这篇关于如何以编程方式禁用浏览器中的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆