[Chapter 21] Reference: Document.anchors[]
Author: David Flanagan
Date: Fri Aug 29 11:14:57 1997

#

| Chapter 21 JavaScript Reference |

# Document.anchors[] Property

## Name

Document.anchors[] Property---the Anchors in a document

## Availability

Implemented but nonfunctional in Navigator 2.0, 3.0, and Internet Explorer 3.0

## Synopsis

    document.anchors
    document.anchors.length

## Description

The `anchors` property is an array of Anchor objects, one for each anchor that appears in `document`. An anchor is a named position within the document, which can serve as the target of a hypertext link. The `anchors[]` array has `anchors.length` elements, numbered from zero to `anchors.length-1`.

This property has not yet been fully implemented; see the Anchor object for more information.

Do not confuse anchors with hypertext links, which are represented, in JavaScript, by the Link objects in the `Document.links[]` array.

## See Also

"Anchor", "Document", "Document.links[]", "Link"

Document.alinkColor |  | Document.applets[]