Re: How to a link in WebBrowser?



<nbdspcl@xxxxxxxxx> wrote in message
news:1177287597.182847.6650@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
What do you know about this particular link? How do you determine
which one you want to click?

I know the text which is contained in the address of hyperlink (not
the exact address, but a substring in it)

Use TextRange.findText to find the text, TextRange.parentElement to get
enclosing <a> element, click() method to "click" the link.

or I can use a hyperlinked
image, in this case I also know the URL of this image.

Use document.all.tags("img") to enumerate all <img> tags, find one with
the URL you are looking for, use parentElement property to get to the
enclosing <a> tag, call click()
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Carbon Dioxide Emissions May Harm Ocean Life
    ... This is high level summary chart. ... uncertainty at all in any of these numbers. ... They are all exact, and ... Well into the report, "In recent decades, however, carbon releases from land ...
    (sci.energy.hydrogen)
  • RE: How do I post a downloadable PDF file in a Front Page website?
    ... I had this exact issue two days ago, frustrating isn't it? ... Then go to FP and create a hyperlink, ... your computer other than the proper file when you upload the hyperlink will ...
    (microsoft.public.frontpage.client)
  • Clear Hyperlink cache
    ... I just went to insert a hyperlink in an Excel document (though the ... exact same thing happens in Word, so it must be a shared Office file ...
    (microsoft.public.mac.office.excel)
  • Re: retain hyperlink target when adding/deleting rows
    ... you don't want to happen with an exact description of how to reproduce you ... There are object hyperlinks, and there is HYPERLINK Worksheet Function. ... Microsoft MVP - Excel ... the target sheet? ...
    (microsoft.public.excel.newusers)
  • Re: Code Editor Annoyance; mouse wheel
    ... Dude...I have that exact same wav...I'had it for *years*! ... Must be a popular one. ... |> That's definitely from the "Now for something entirely different" land. ...
    (microsoft.public.vb.general.discussion)