开发者

How to get the the address of internal links in a webview

开发者 https://www.devze.com 2023-03-26 09:54 出处:网络
if an user clicks an internal link in the web view.i want to get its \"href\".my link i开发者_高级运维s something like:

if an user clicks an internal link in the web view.i want to get its "href".my link i开发者_高级运维s something like:

<li><a href="RV://w_make27" style="color:#003366;">Click ME!!</a></li>

As the link protocol is not http:// i am not getting the events (Navigating/navigated) fired

.please help me if anyone knows a solution for this problem.


Sujiz,

If I understand your question correctly, you are using a WebBrowser control to display a "web view" and want to capture the URLs that the user clicks on. Right?

If so, listen to the WebBrowser's Navigated/Navigating raised events & use the WebBrowser.Source property to get the URL that the browser component is loading.

This helps?

0

精彩评论

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