Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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

p = object.anchors

 

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

document

 

 

Show:
© 2014 Microsoft