LinkArray object (Object/browser)

A collection of link objects belonging to a document.


JavaScript - 1.0
JScript - 3.0
Internet Explorer - 4.0
Netscape - 2.0
JavaScript syntax:-myLinkArray = myDocument.links
Object properties:length

This is a collection of Url objects. In Netscape, you can inspect the constructor to establish the class name which is masked by the toString() method of the Url object. In MSIE, you cannot get at the constructor so we have to assume that the object is a Url object.

Url objects are created when an <AREA> or <A> tag refers to a document. Anchors that are simply named locations within a document but which don't have an HREF get added to the anchors array but not to the links array.

Netscape prior to version 6.0 calls this a LinkArray (as opposed to a LinksArray which might be more appropriate). In MSIE it is just a Collection and in Netscape version 6.0 it has become an HTMLCollection because that is what DOM specifies it should be.


See also:Area object, Collection object, Document.anchors[], Document.links[], HyperLink object, LINK object, Url object

length1.0 1.03.0 3.02.0 2.04.0 4.0 n/a n/a n/a n/a n/a n/aReadOnly.