NodeList.length (Property)

Returns the length of a collection array.


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

The NodeList collection behaves exactly like an Array object and returns a number representing a count of all the Node objects in the collection.

Example code:

   myCount = document.all.length;

See also:Array.length, Collection.length

Property attributes: