Get more than one getElementsByTagName in loop?
Posted on 2005-03-31
How do you obtain more than one TAG when recursing a document? What I am asking is how whould I extract a TABLE following the "A" link below? In other words, once I find a href link....move next extract the table following it so I can print both the link AND the first TABLE that follows after it!
Dim alink As HTMLLinkElement
Dim table As HTMLLinkElement
For Each alink In WebBrowser1.Document.getElementsByTagName("A")
' just need to figure out how to get the table below the LINK!