Attribute.value (Property)

The value of the HTML tag attribute if it has been specified.

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.value

This property reflects the value defined by the parent HTML tag attribute. It is part of the DOM support for HTML tag attributes.

If an HTML tag attribute is specified, the attribute flag for that property of the HTML tag's object will be set true. The actual value of the HTML tag attribute will be stored in this property. This Attribute.value property gets updated automatically if the owner Element object's property value is changed. Internally the two property accessors probably refer to the same storage location.

insert figure 0123