anchors property
Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
Syntax
| JavaScript | |
|---|
Property values
Type: IHTMLElementCollection
Array of a objects.
Standards information
There are no standards that apply here.
Examples
This example shows how to display the name property of the third anchor defined in the document.
console.log(document.anchors(2).name);
See also
Show: