Name
NAME — NN all IE all HTML all
Synopsis
NAME=”elementIdentifier"
Optional
If the INPUT
element is part of a form being
submitted to a server, the NAME
attribute is
required if the value of the element is to be submitted with the
form. For forms that are in documents for the convenience of scripted
form elements, INPUT
element names are not
required but are helpful just the same in creating scripted
references to these objects and their properties or methods.
Input Types
All.
Example
<INPUT TYPE="text" NAME="ZIP" MAXLENGTH=10>
Value
Case-sensitive identifier.
Default
None.
Object Model Reference
- NN
[window.]document.formName.inputName.name
[window.]document.forms[i].elements[i].name
- IE
[window.]document.formName.inputName.name
[window.]document.forms[i].elements[i].name
[window.]document.all.elementID.name
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.