获取点击的 HTML 链接的属性
我开始使用 MS Visual C++ 2010 Express。我遇到了以下问题,我使用webBrowser控件查看html文档,需要获取单击链接的属性(可能只是一个),这可能吗?如果是的话该怎么做?
感谢您的所有回复,并对我的英语不好表示歉意;p
I'm starting to use MS Visual C++ 2010 express. I've had the following problem, I use a webBrowser control to view html documents and need to get the attributes (could it be just one) of clicked link, is it possible? and if it is then how to do this?
Thanks for all replies and sorry for my bad english ;p
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 MSHTML (Trident) 中的 WebBrowserControl,则应该能够在接收到 DISPID_BEFORENAVIGATE2 时在函数 OnBeforeNavigate2() 或 DWebBrowserEvents2 的 Invoke() 中检索单击的 URL。
(URL 是第二个参数)。
以获得更多详细信息和解释。 MSDN
If you are using the WebBrowserControl from MSHTML (Trident), you should be able to retrieve the clicked URL in the function OnBeforeNavigate2() or in the Invoke() of your DWebBrowserEvents2 on reception of DISPID_BEFORENAVIGATE2.
(The URL is the second parameter).
To have more details and explanations. MSDN