An instance of the Anchor object is created with each instance of the tag with the NAME attribute set. An anchor itself is a point in an HTML document that can be reached by using a hypertext link. Anchors allow access to specific parts of Web pages rather than always displaying the top of a document when a Web page is loaded in a browser.
PropertiesDescription
nameA name that provides access to the anchor from a link
textThe text that appears between the and tags
xThe x-coordinate of the anchor
yThe y-coordinate of the anchor
The following example creates Anchors in a Document.
Pick a letter:
A|B|C
The Letter A
A
B
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
C
D
F
G
H