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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing HTML Table in WebBrowserControl

Status
Not open for further replies.

hilbertl3

Technical User
Sep 22, 2004
77
US

All,

I am accessing a site with multiple frames through a webbrowser control in VB6.
This site has a table that is dynamically created in HTML when the page
loads.
This table has 6 cells, each of which contains a link to a different
javascript function.
I want to "click" the link in one of these cells, but I' am having a great
deal of trouble putting together the procedure to reference the table and the
cellls within int.
Can any one help me out with this?

Thank you,

hilbertl
 
You use the "Document" property of the control, which will in the case of HTML documents retrieve the MSHTML object. You use that object's controls/properties to parse the document, including HTML elements, ActiveX objects, and scripts.

Note that the "Document" property will load the appropriate COM object. MSHTML for HTML, the Excel API for Excel files, etc.

You should refer to the MSDN documentation for all of this. Search "WebBrowser Control" and/or "MSHTML".



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting


Haiku workshop and community.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top