开发者

Getting the attributes of HTML link clicked

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 possibl开发者_StackOverflowe? and if it is then how to do this?

Thanks for all replies and sorry for my bad english ;p


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜