1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to click link like this?

Discussion in 'Visual Basic 6' started by discodave, Feb 12, 2010.

  1. discodave

    discodave Regular Member

    Joined:
    Nov 2, 2009
    Messages:
    249
    Likes Received:
    110
    How to click this one in vb6?
    Code:
    <a href="../docs/report.doc" onclick="return download('content_index');">Download!</a>
    
    
     
    Last edited: Feb 12, 2010
  2. I.M.Real

    I.M.Real Newbie

    Joined:
    Apr 21, 2010
    Messages:
    1
    Likes Received:
    0
    Posted via Mobile Device[/size

    sorry tried to help u with it.phone su 4a362305850e793fa0451b3228283ed6883ae6a3

    cks . Will post when I'm around a pc
     
    Last edited: Apr 26, 2010
  3. howdoyou

    howdoyou Regular Member

    Joined:
    Nov 17, 2008
    Messages:
    284
    Likes Received:
    57
    Occupation:
    Programming
    Location:
    Kentucky
    Code:
        Set colLinks = WebBrowser1.Document.All.tags("A")
        For Each colCurrentLink In colLinks
            List1.AddItem colCurrentLink
        Next colCurrentLink
    instide of adding the link to the colcurrentlink list box, just have the browser direct to that link.
     
  4. Ornani

    Ornani Newbie

    Joined:
    Dec 12, 2010
    Messages:
    13
    Likes Received:
    0
    are you using a webbrowser command?
     
  5. fredbent

    fredbent Newbie

    Joined:
    Dec 18, 2008
    Messages:
    25
    Likes Received:
    26
    can you show me the webpage itself i may be able to help you:)
     
  6. carnage_100101

    carnage_100101 BANNED BANNED

    Joined:
    Feb 17, 2011
    Messages:
    240
    Likes Received:
    163
    Loop through all element on the page,Then within that loop use the instr function to look for the innerhtml of the element.Once found,Simply issue a .click.