Name
NAME — NN n/a IE 4 HTML 4
Synopsis
NAME=”elementIdentifier"
Optional
For a BUTTON
element, the NAME
attribute can play two roles, depending on the
TYPE
attribute setting. For all
TYPE
attribute settings, the
NAME
attribute lets you assign an identifier that
can be used in scripted references to the element (the
ID
attribute is an alternate way to reference the
element). For a button type of submit
, the
NAME
attribute is sent as part of the name/value
pair to the server at submit time.
Example
<BUTTON TYPE="submit" NAME="Type" VALUE="infoOnly">Request Info</BUTTON>
Value
Case-sensitive identifier.
Default
None.
Object Model Reference
- IE
[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.