如何阻止弹出窗口 [广告] 出现在我的网络视图中?
我正在创建一个加载一些网站的网络视图。我想阻止网站上出现的弹出窗口,以便用户只能看到合法的网址。我怎样才能做到这一点?浏览器确实会检测弹出窗口并警告用户阻止或允许它。所以我认为必须有一种方法来检测弹出窗口。
提前致谢。
I am creating a webview which loads some sites. I want to block popups appearing on the site, so that only legitimate Urls are seen by users. How can i achieve that ?? Browsers do detect popups and warns users about Blocking it or allowing it. So i assume that there must be a way to detect popups.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试这个:
但至少对我来说,并不是所有的弹出窗口都被阻止,我无法解释为什么。
You can try this:
But at least for me not all popups are blocked and I can not explain why.