How could I get the listing of all pictures on a webpage, using the WebBrowser control?
Couldn't find help on the topic.
Thanks.
Printable View
How could I get the listing of all pictures on a webpage, using the WebBrowser control?
Couldn't find help on the topic.
Thanks.
I'd use the Inet control to get the source - and then string parse out the '<img' tag... That'd get you the image listing and image paths...
Cheers!
:) You can use the Document Object Model's images collections:
VB Code:
Dim i As Integer For i = 0 To WebBrowser1.Document.images.length - 1 MsgBox WebBrowser1.Document.images.Item(i).getAttribute("src") Next