JavaScript » Document » links

Syntax:
document.links["linkID"]

This property is an array containing references to all the Area and Link objects in the current document.

This property is an array containing references to all the Area and Link objects in the current document. These references are stored in the array in the order in which they are defined in the source source code. The "linkID" argument is an integer relating to a link defined within a <A HREF = " "> or <AREA HREF = " "> tag in the HTML source.

Examples

Code:
document.links[0]
document.links[1]
document.links[2]