Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what number in the link array?

Status
Not open for further replies.

apparition

Technical User
Aug 8, 2001
34
US
I need to be able to click on a link and the script tell me (alert or something) what number that link is in the link array on the page without actually typing the onClick attribute in the HTML tag.

Actually the ultimate goal is every time someone clicks on a link, I want to search the href attribute of that link for the string ".pdf". The whole point is that I don't want to go through each link setting the onClick attribute. I was looking at the event object but it confused the heck outa me :)

Any help would be appreciated.
Thanks
 
~bump~
I'm runnin out of ideas...
Any suggestions at all?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top