JavaScript Kit > JavaScript Reference > Here
Anchor Object
Last updated: June 20th, 2004
Anchors are defined in HTML with the tag <a name="name">, and represented in JavaScript via the Anchor object. The syntax for accessing an anchor is:
document.anchors[i] //where i is the position of the anchor within all the anchors on the page
Properties
Properties | Description |
---|---|
name | A string specifying the anchor's name. |
Reference List
- JavaScript Operators
- JavaScript Statements
- Global functions
- JavaScript Events
- Escape Sequences
- Reserved Words
Right column