Re: How to a link in WebBrowser?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Sun, 22 Apr 2007 22:31:09 -0400
<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
.
- Follow-Ups:
- Re: How to a link in WebBrowser?
- From: nbdspcl
- Re: How to a link in WebBrowser?
- References:
- How to a link in WebBrowser?
- From: nbdspcl
- Re: How to a link in WebBrowser?
- From: Igor Tandetnik
- Re: How to a link in WebBrowser?
- From: nbdspcl
- How to a link in WebBrowser?
- Prev by Date: Re: How to a link in WebBrowser?
- Next by Date: Simple implementation of IDispatch for HTMLEvents??
- Previous by thread: Re: How to a link in WebBrowser?
- Next by thread: Re: How to a link in WebBrowser?
- Index(es):
Relevant Pages
|
|