Javascript Reference
Categories: elements

javascript elements length

@July 1, 2008, 3:17 p.m.
length Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

 

Read-only  

Returns the number of elements in the collection of elements.

 
Example
 
var howMany = document.forms[0].elements.length;
 
Value

Integer.


Powered by Linode.