August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.links
document.links[index]
The links property is an array that contains all the Link objects that appear within the HTML document from using the <a href=" source "> tag. The links property has one property of its own, called length, which contains the number of Link objects in the array. The index number ranges from zero to the length minus one. See Link, earlier in this chapter, for a detailed explanation of all the properties associated with links.
Warning
Although anchors are created using the <a> tag, they are not accessible through the links array. Anchors are stored in the document's anchors array.
Listing 7.144 displays ...
Read now
Unlock full access