webbrowser control click link
hi all,currently working on a personal webbrowser control project,and im stick atm,i need to click some txt which is link,im thinkin of any over ways i cud do this? or how to do it propley heres the source,
Quote:
<a style="display: block; color: black; text-decoration: none;" class="sprite-btn btn-yltk" id="app17091798008_btn_yltk" href="#" target="_blank" onmouseup="fbjs_sandbox.instances.a17091798008.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,17091798008),function(a17091798008_event) {return a17091798008_yesno('yes','public');},17091798008],new fbjs_event(event));" onclick="(new Image()).src = '/ajax/ct.php?app_id=17091798008&action_type=3&post_form_id=7d1e185d81ace5abc3c1e8e9d1f15e6a&po sition=3&' + Math.random();fbjs_sandbox.instances.a17091798008.bootstrap();return fbjs_dom.eventHandler.call([fbjs_dom.get_instance(this,17091798008),function(a17091798008_event) {return false;},17091798008],new fbjs_event(event));return true;" fbcontext="36b58199bf81">
<div style="font-weight: bold; padding-top: 5px;"><span style="font-size: 18px;">YES</span><br />(Let Them Know)</div>
</a>
">YES</span><br />(Let Them Know)</div> -
^^ you see this this is the text it needs to click maybe somthing like
For Each href In HTML.links
If href.innerText = "app17091798008_btn_yltk" Then
href.Click
Exit For
End If
Next
this doesnt work though,help will be appricated thank you
Re: webbrowser control click link
Quote:
For Each ele In pwn.Document.getElementsByTagName("A")
If ele.innerText = "(Let Them Know)" Then ele.Click: Exit For
Next
hmm this is confusing me :P because its not a hyper link