I’m using the webBrowser object to surf to a page that has an Iframe.
I’m trying to get the Specific objects in this iframe by using the GetElementByID function.
I do something like this: webBrowser1.document.GetelementByID(“iframeName”).document.GetElementByID(“ElementName)
It doesn’t work. I get Null.
Any ideas?
TY
The
Documentproperty gets theHtmlDocumentobject that owns the element, not the document in the<iframe>.Instead, you should use the
HtmlWindow.Framescollection, like this: