BUTTON.name (Property)

This corresponds to the NAME attribute of the <BUTTON> HTML tag.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myBUTTON.name

Objects are identified either by the NAME tag attribute or by the ID tag attribute. MSIE seems slightly better disposed towards the ID attribute than earlier versions of Netscape. However, in many cases, both browsers support either technique and in some cases will locate items named with either attribute as if they existed in a single namespace. Version 6.0 of Netscape may restore parity with MSIE in this respect.

See also:Input.name