all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

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

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.