JavaScript Anchor Object

The JavaScript anchor object describes a links destination or target. The JavaScript anchor object is a property of the document object and has no methods, properties, or events. Anchors in the document can be found in the documents anchors array.

An object which is a named location in the HTML document.

Properties

  • name - The anchor name.
  • text - The text that appears where the anchor is.
  • x - The anchor X coordinate.
  • y - The anchor Y coordinate.