Name

Anchor — the target of a hypertext link

Availability

Client-side JavaScript 1.2

Inherits From

HTMLElement

Synopsis

                     document.anchors[i]
document.anchors.length

Properties

Anchor inherits properties from HTMLElement, and also defines or overrides the following:

name

The name of an anchor.

text

The text of an anchor. Navigator 4.

x

The X coordinate of an anchor. Navigator 4.

y

The Y coordinate of an anchor. Navigator 4.

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.