>>>Hi All. Given a web page in HTML (downloaded using the IE browser control) is there a quick way to get a list of all links contained within it or must one parse the html for href= links?
>>>
>>Jos,
>>
>>You can use Links collection. For example,
oIE = CREATEOBJECT("InternetExplorer.Application")
>>oIE.Navigate("www.levelextreme.com")
>>...
>>oDoc = oIE.Document
>>? oDoc.Links.length
>>
>
>Hi
--sb--. Thanks again. Just what I needed. Have you got any useful links to the object heirarchy of IE? I did find some on MSDN but was just wondering if you had a particularly useful one.
>
>Also, Merry Christmas and thanks for all the great posts, solutions, and insights.
Sergey gave you good advice.
Another possibility is the Document.GetElementsByTagName method.
Using the "A" below returns a collection of Anchor objects:
oIE = CREATEOBJECT("InternetExplorer.Application")
oIE.Navigate("www.levelextreme.com")
oHRefs = oIE.Document.GetElementsByTagName( "A" )
- Andy Rice
San Diego, CA