Jump to content
Sign in to follow this  
LarryDalooza

HTML Anchor Tag

Recommended Posts

LarryDalooza

Can you access the info in the "onclick" of an anchor tag?

I have an <A> that I need to click that is only distinguishable by it's iteration and it's "onlick" information. I would like to be able to identify it by what I find in it's "onclick" info ... is that info exposed?

Lar.

Edited by LarryDalooza

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites
weaponx

If there is nothing distinguishable about it then what do you click on? It has to be an image, text, button, etc...

Share this post


Link to post
Share on other sites
LarryDalooza

Thanks for considerations... I found this... so I am good...

I loop around...

$onclick = $obj.getAttributeNode("onclick")

If StringInStr($onclick.value,"blah blah") Then...

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites
diikee

Larry,

Can you give the entire solution to your problem incase someone else runs into the same problem??

Share this post


Link to post
Share on other sites
weaponx

Larry,

Can you give the entire solution to your problem incase someone else runs into the same problem??

It's pretty simple.

$oIE = _IEAttach("http://blablabla.com")
 $oTags = _IETagNameGetCollection ($oIE, "a")
 For $oTag in $oTags
 $onclick = $oTag.getAttributeNode("onclick")
 If StringInStr($onclick.value,"blah blah") Then ....
 Next
Edited by weaponx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.