| View previous topic :: View next topic |
| Author |
Message |
hardcider09
Joined: 26 Mar 2009 Posts: 15
|
Posted: Fri Jul 24, 2009 2:33 am Post subject: Search for Link Address in Firefox and then select it |
|
|
Hi...
I'm trying to have AHK search for a link address on a webpage (in Firefox) that has a particular word in it, and then select that link. Anybody know how I could do this? (I'm a relative newbie.)
Thanks! |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7295 Location: Australia
|
Posted: Fri Jul 24, 2009 12:22 pm Post subject: |
|
|
| With the "Search for text when I start typing" option enabled (see Tools -> Options -> Advanced) in Firefox 3.5, I just type (or Send) the text and press (or Send) Enter. |
|
| Back to top |
|
 |
hardcider09
Joined: 26 Mar 2009 Posts: 15
|
Posted: Mon Aug 03, 2009 7:24 pm Post subject: |
|
|
I appreciate the suggestion, but I'm looking for the actual text of the HYPERLINK, not the text displayed on the webpage. I ended up using line of javascript that someone wrote for me.
javascript:location=document.querySelector('a[href*="STRING YOU'RE LOOKING FOR"][href*="A SECOND STRING YOU'RE LOOKING FOR"]').href |
|
| Back to top |
|
 |
|