I am trying to make a programI how-ever need to get the url between the href tag. There are multiple links on the site. For example.
I just want the text between href="" and display in in a textbox.
I have an example code
but that just gets the text not the link
PHP Code:
<a class="sec pokeActionLink" href="/a/notifications.php?poke=1336&redir=%2Fpokes%2F&sr&gfid=AQDv3ds4upt81JOy&refid=68" data-sigil="ajaxify"><span class="mfsm">Reply</span></a>
I have an example code
Code:
For Each element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("a")
If element.GetAttribute("href").Contains("/a/") Then
textbox1.Text = textbox1.Text & element.InnerText & vbCrLf
End If
Next