Anchor Object
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!

 
CSGNetwork
Snippets
Calculators
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

Anchor Object

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.