HBCMS更多的中文手册参考:

NAME Attribute | name参数属性

DHTML文档教程

Sets or retrieves the name of the object.

What's New for Microsoft® Internet Explorer 6

This property now applies to the attribute object.

dhtml语法

HTML<ELEMENT NAME = sName... >
Scriptingobject.name [ = sName ]

DHTML可能的值

sNameString that specifies or receives the name.

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

when submitting a form, use the name property to bind the value of the control. the name is not the value displayed for the input type=button, input type=reset, and input type=submit input types. the internally stored value, not the displayed value, is the one submitted with the form.

microsoft jscript® allows the name to be changed at run time. this does not cause the name in the programming model to change in the collection of elements, but it does change the name used for submitting elements.

the name attribute cannot be set at run time on elements dynamically created with the createelement method. to create an element with a name attribute, include the attribute and value when using the createelement method.

Examples

The following example shows how to set the NAME attribute on a dynamically created a element.

var oanchor = document.createelement("<a name='anchorname'></a>");

是否符合公共标准

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

A, APPLET, attribute, BUTTON, EMBED, FORM, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, LINK, MAP, OBJECT, RT, RUBY, SELECT, TEXTAREA