WebBrowser control getting links
Posted on 2004-09-25
I am trying to get all the links from an html page. I am running into
difficulties on pages that have "frames". I realize there might be issues
with framed sites but the site I'm interested in doesn't actually have
frames but does have asp header and side menus and I think that is the
problem. It chokes on this line of code and gives me error 438: Object does
not support this property or method.
WebBrowser1.Document.links.length - 1
That's just plain weird because if you Add Watch to the WebBrowser control
and drill down the tree, it shows it to you! What is going on here?