Dim HTMLDoc As mshtml.HTMLDocument
HTMLDoc = AxWebBrowser1.Document
Dim htmlCollection As IHTMLElementCollection
htmlCollection = HTMLDoc.getElementsByTagName("script")
MsgBox(htmlCollection.toString)
- returns [object]
Is there also anyway to stop axwebbrowser displaying the script errors alert?
Surely you want to process each element (each script tag) in the collection? They are of type mshtml.IHTMLElement, look up this in Object Browser to see what members it has.
I think the Silent property of the browser will surpress the script error messages.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.