user4265992
user4265992

Reputation:

How do I get text from web brwoser into a label in vb?

How do I get this, from my webbrowser into a label in vb? Like.. how do do I get the "apple" into a label?

<div class="banana">
<input class="form-control" type="text" placeholder="Result" value="apple>
</div>

Upvotes: 0

Views: 1742

Answers (1)

Stijn
Stijn

Reputation: 2060

Try the following:

YourLabel.Text = Wb.Document.GetElementById("yourId").GetAttribute("value")

You'll have to provide the input tag in the HTML document with an id, though. If you're not in control of the HTML, take a look at GetElementsByTagName.

Upvotes: 1

Related Questions