Language References
Sets or retrieves the name of a control element on a FORM.
Inline |
<element NAME = sName...> |
Script |
object.name = sName ] |
sName |
String containing the name. |
The property is read/write with no default value.
The name property is used to bind the value of the control when submitting a FORM. Only controls with a given name and a valid value are sent as part of the submitted form data set.
The name is not the value that is displayed for the button, reset, and submit input types. Submitting the form submits the internally stored value, not the one displayed.
JScript® ( compatible with ECMA-262 language specification ) 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.
A, APPLET, BUTTON, FORM, IMG, INPUT, LINK, MAP, OBJECT, PARAM, RB, RT, RUBY, SELECT, TEXTAREA