Jump to content

Recommended Posts

Posted (edited)

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

Posted

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

Posted

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

Posted (edited)

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...