Results 1 to 2 of 2

Thread: webbrowser control click link

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2003
    Posts
    305

    Smile 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,

    <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&amp;action_type=3&amp;post_form_id=7d1e185d81ace5abc3c1e8e9d1f15e6a&amp;po sition=3&amp;' + 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
    Last edited by Mr_Zer0; May 30th, 2009 at 03:17 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2003
    Posts
    305

    Re: webbrowser control click link

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width