如果检测重定向的网页浏览器 [英] Detect if Webbrowser redirects

查看:150
本文介绍了如果检测重定向的网页浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一种方式,如果当前页是要重定向web浏览器实例中可以检测到。或者,如果一个广告弹出页面时开始加载,然后进入到实际的URL,我正在寻找一种方法来检测。

I am looking for a way a WebBrowser instance can detect if the currentpage is going to redirect. Or, if an ad pops up when the page is initially loaded and then goes to the actual URL, I am looking for a way to detect that.

没有任何人有什么想法?

Does anybody have any ideas?

谢谢!

推荐答案

您可以使用WebBrowser控件的导航活动,如果你想取消导航

You can use "Navigating" event of WebBrowser control and cancel the navigation if you want

这篇关于如果检测重定向的网页浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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