Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2015 Microsoft