You are here: irt.org | BBS | Re: How to access anchors names in JS... [This BBS is closed]
Posted by Martin Webb on June 17, 1998 at 18:12:53:
In Reply to: How to access anchors names in JS... posted by Dmitrii Ignatiev on June 16, 1998 at 17:52:11:
The Netscape JavaScript reference states:
Properties
None.
Methods
None.
Yet, when I do:
output ='';
for (var i in document.anchors[0]) {
output += i + ' ' + document.anchors[0][i] + '\n';
};
alert (output);
I find out that in NN4 an anchor has four properties; text, name, x and y.
NN2, 3 and MSIE3 implement the anchors array - but it doesn't work. Which browser and version are you using?
Follow-ups:
You are here: irt.org | BBS | Re: How to access anchors names in JS... [This BBS is closed]