Retrieves the number of objects in a collection.
Syntax
HTML N/A Scripting [ iLength = ] object.length
Possible Values
iLength Integer that specifies the number of objects. The property is read-only with no default value (see Remarks).
Remarks
The window.length property returns the number of frames contained in a window.
Although this property is read-only for most of the objects listed in the Applies To section, it is read/write for the areas collection (image maps), the options collection (select boxes), and the SELECT object.
In all other cases, this property has read-only permission, which means you can retrieve, but cannot change, its current value.
Applies To
all, anchors, applets, areas, attributes, behaviorUrns, bookmarks, boundElements, cells, childNodes, children, controlRange, elements, embeds, filters, forms, frames, history, images, imports, links, options, plugins, rows, rules, scripts, SELECT, styleSheets, tbodies, TextRectangle, window