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!

frames in htmlDocument

Status
Not open for further replies.

fishysheep

Programmer
Oct 13, 2001
54
0
0
GB

hi,

this line of code is fine (wb is webBrowser) in documentComplete event:
MsgBox wb.Document.frames.length

so what I then want to do is to loop through the frames in each document and display the html - but the following doesn't work:
MsgBox wb.Document.frames(1).innerHTML

thanks

 
Items in the frames collection return a window object which does not expose the innerHTML property directly.

Try the following code instead.
[tt]MsgBox wb.Document.frames(1).document.body.innerHTML[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top