HBCMS更多的中文手册参考:

length参数属性

DHTML文档教程

Sets or retrieves the number of objects in a collection.

What's New for Microsoft® Internet Explorer 6

This property now applies to the comment object.

dhtml语法

HTMLN/A
Scriptingobject.length [ = iLength ]

DHTML可能的值

iLengthInteger that specifies or receives the number of objects.

The property is read/write for all objects except the following, for which it is read-only: comment, pages. The property has no default value.

Remarks

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 objects, 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.

the form.length property does not count input type=image elements. to access all elements contained in a form, use the children collection.

for microsoft windows® ce only, this collection will always be empty.

是否符合公共标准

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

all, anchors, applets, areas, attributes, behaviorUrns, bookmarks, boundElements, cells, childNodes, children, COMMENT, controlRange, elements, embeds, filters, forms, frames, images, imports, links, namespaces, options, pages, plugins, rows, rules, scripts, SELECT, styleSheets, tBodies, TextRectangle, TextRange, window, FORM