开发者

Read iframe content using Webbrowser C#

开发者 https://www.devze.com 2023-03-22 04:28 出处:网络
I know that I can access all iframes using the following properties of webbrowser: string html = webBrowser1.Document.Window.Frames[0].WindowFrameElement.InnerText;

I know that I can access all iframes using the following properties of webbrowser: string html = webBrowser1.Document.Window.Frames[0].WindowFrameElement.InnerText;

But I'm struggling with cross-domain restriction.. My document url is like www.subdomain1.sport.com/... And iframes url is like www.subdimain2.sport开发者_C百科.com/...

How to access iframes content and put some text into input tag there?


I think you must refer the following URL to get the content of IFrame which exists on cross domain.

http://codecentrix.blogspot.com/2008/02/when-ihtmlwindow2document-throws.html

0

精彩评论

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