Click to See Complete Forum and Search --> : Anchor's index


smith
06-10-2003, 11:59 AM
Hello,

I am new to JavaScript so I ask you to help me.

I cannot grasp how to get anchor's index by its name. Should I loop through document.anchors to get it or is there a kind of a direct approach?

Thank you in advance.

Cheers,
Andy

Khalid Ali
06-10-2003, 12:20 PM
I am afraid there is no direct approach.

Vladdy
06-10-2003, 01:20 PM
document.getElementById('myLink');
...
<a id='myLink ...