Input.name (Property)

This corresponds to the NAME attribute of the <INPUT> tag.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 5.5
Internet Explorer - 5.5
Netscape - 6.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myInputObject.name
HTML syntax:<INPUT NAME="aName">
Argument list:aNameA name for the input element

Objects are identified either by the NAME="..." HTML tag attribute or by the ID="..." HTML tag attribute.

Netscape shows a marginal preference for the name property while MSIE seems slightly better disposed towards the ID property. However, in many cases both browsers support either technique and in some cases will locate items named with either tag as if they existed in a single namespace.

See also:BUTTON.name