Name
NAME — NN all IE all HTML all
Synopsis
NAME=”elementIdentifier"
Optional
If the TEXTAREA
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, TEXTAREA
element names are not
required but are helpful just the same in creating scripted
references to these objects and their properties or methods.
Example
<TEXTAREA NAME="comments"></TEXTAREA>
Value
Case-sensitive identifier.
Default
None.
Object Model Reference
- NN
[window.]document.formName.elementName.name
[window.]document.forms[i].elements[i].name
- IE
[window.]document.formName.elementName.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.