In my vb application,I want to get a tag from a http file.So I use Scriptlet control,it can get the web,but I cann't control the tag which in the http file.
Thanks for any suggestion!
Printable View
In my vb application,I want to get a tag from a http file.So I use Scriptlet control,it can get the web,but I cann't control the tag which in the http file.
Thanks for any suggestion!
you don't need the scriptlet control, but you need the webbrowser control and mshtml.dll (reference) to reference the DOM.
then code like this
private Sub Command2_Click()
w.Navigate "http://yoururl"
End Sub
private Sub w_DocumentComplete(byval pDisp as Object, URL as Variant)
Dim d as HTMLDocument
set d = w.Document
' to get an attribute of a certain HTML element
d.all.t.tagName ' gets tagName of element with id "t"
End Sub