asp.net.ph

Skip Navigation Links

NAME Attribute | name Property

Language References


Sets or retrieves the name of a control element on a FORM.

Syntax


Inline <element NAME = sName...>
Script object.name = sName ]

Possible Values


sName String containing the name.

The property is read/write with no default value.

Remarks

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.

Applies To

A, APPLET, BUTTON, FORM, IMG, INPUT, LINK, MAP, OBJECT, PARAM, RB, RT, RUBY, SELECT, TEXTAREA


See Also

Form Submission: Successful Controls



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note