Collection.length (Property)

Returns the length of a collection array.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-myCollection.length

The collection behaves exactly like an array object and returns a number representing a count of all the elements in the collection.

See also:AnchorArray.length, AppletArray.length, Arguments.length, Array.length, Attributes.length, Form.elements.length, Form.length, FormArray.length, LayerArray.length, LinkArray.length, NodeList.length, Plugin.length, PluginArray.length, ScriptArray.length, StyleSheetList.length, Window.length

Property attributes:

ReadOnly.