HTML
How would I get "myvalue"? I've tried using .InnerText/.InnerHTML, but neither work. Instead of "myvalue" it will return "".Code:<input type="text" id="id1" name="id1" value="myvalue" title="id1" >
Printable View
HTML
How would I get "myvalue"? I've tried using .InnerText/.InnerHTML, but neither work. Instead of "myvalue" it will return "".Code:<input type="text" id="id1" name="id1" value="myvalue" title="id1" >
use GetElementById to get the Element ( eg: id1 ) & then GetAttribute to get it's value, like this...
hope it helps :)Code:'/// obviously putting your own browser's name where i have WebBrowser1.
If Not WebBrowser1.Document Is Nothing Then
MessageBox.Show(WebBrowser1.Document.GetElementById("id1").GetAttribute("value"))
End If