开发者

Read iframe content using Webbrowser C#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜