I have a windows form application that contains a webbrowser control. (WebBrowser1)
The webbrowser control is populated with a html page. (index.html)
The html page contains a dynamic ajax frame.
The ajax frame has a hidden filed that is dynamically populated. (input type=”hidden” id=phone_number name=phone_number value=””)
doc.body.GetAttribute(“phone_number”) doc.getElementsById(“phone_number”) doc.GetElementsByTagName(“phone_number”)
What about getting the “value” attribute of the element with ID “phone_number”?
Hi, Thanks for all the replies, the line below did the trick. It is necessary to append the GetAttribute property to the GetElementByID property to “see” the contents of the hidden field!