HBCMS更多的中文手册参考:

MAXLENGTH Attribute | maxLength参数属性

DHTML文档教程

Sets or retrieves the maximum number of characters that the user can enter in a text control.

dhtml语法

HTML<ELEMENT MAXLENGTH = iLength... >
Scriptingobject.maxLength(v) [ = iLength ]

DHTML可能的值

iLengthInteger that specifies or receives the maximum length of the input.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

the maxlength property limits the number of characters the user can enter. the property does not limit programmatic assignments to the value property. the property's value can be larger than the size of the text box, in which case the text box scrolls as the user types.

是否符合公共标准

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

Applies To

INPUT type=text, INPUT type=password

更多语法参考

size