Document JavaScript Tutorial

Syntax

document.links
    document.links[index]
The links property is an array that contains all the Link objects.
The links property length contains the number of Link objects in the array.
The index number ranges from zero to the length minus one.
Although anchors are created using the tag, they are not accessible through the links array.
Anchors are stored in the document's anchors array.


    B Page

    A Page