Attribute.name (Property)

The name of the HTML tag attribute this object represents.

Availability:

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

The name of the HTML tag attribute that this object represents is reflected here. This is the same value as the property name within the Attributes array that refers to this object. You can use that value associatively or as if it were a property name.

This value is also the same as a property name belonging to the Element object that represents the HTML tag that this is an attribute of.

Property attributes:

ReadOnly.