Click to return to the DHTML, HTML     
LEFTMARGIN Attribute | le...     length Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

length Property


Retrieves the number of objects in a collection.

Syntax

HTMLN/A
Scripting[ iLength = ] object.length

Possible Values

iLengthInteger 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
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


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.