Javascript Reference
Categories: FORM

javascript FORM length

@March 15, 2008, 1:22 a.m.
lengthFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read-only  

Specifies the number of form control elements in the form. You can use this property in lieu of the length of the form's elements array.

 
Example
 
for (var i = 0; i < document.forms[0].length; i++)
    ...
}
 
Value

Integer.

 
Default

0


Powered by Linode.