length Property
Value: integer
Compatibility: WinIE3+, MacIE3+, Moz1+, Sasfari1+
The length property returns the number of items in an array or collection of objects. While arrays and collections use integer values as index values (starting with zero), the length value is the actual number of items in the group.
for(var i = 0; i < myArray.length; i++)
{
...
}
All browsers: document.forms.length
All browsers: document.forms[0].elements.length
Moz, IE4+: document.images.length
Moz: document.layers.length
IE4+: document.all.length
IE5+, W3C: document.getElementById(”myID”).childNodes.length
Related items: area, select and Array objects.
One Response to “length Property”
Leave a Reply
You must be logged in to post a comment.

September 9th, 2010 at 8:20 pm
Buy:Soma.Viagra Super Force.Viagra Super Active+.Zithromax.Cialis Soft Tabs.Tramadol.Viagra Professional.Viagra Soft Tabs.Super Active ED Pack.VPXL.Cialis Super Active+.Cialis.Levitra.Maxaman.Cialis Professional.Viagra.Propecia….