Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Geting text from a frame in a web browser

Status
Not open for further replies.

greymonkey

Technical User
Jul 20, 2003
29
0
0
AU
Hi,

I have a webbrowser object in my vb app which loads a page which has several frames in it.

I am trying to get the text from one frame so I can search it but I cant seem to get it.

So far I have:

Code:
Dim temp as String

temp = WebBrowser1.Document.GetElementById("FrameName").Document.Body.InnerHtml

This does return some Html code but not the same as if the the frame was loaded by its self in the browser and I use:

Code:
temp = WebBrowser1.Document.Body.InnerHtml

If any one has any ideas or knows how to just get all the text on the page into a string that would be great.

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top