Sets or retrieves the number of objects in a collection.
the number of objects.
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
The window.length property returns the number of frames contained in a window.
The comment.length property returns the number of characters in the object.
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.
For Windows CE only, this collection will always be empty.