December 1999
Intermediate to advanced
992 pages
22h 3m
English
This interface represents an attribute of an element object. Attr objects are not considered part of the document tree; instead, they're considered properties of their elements.
The name attribute returns the name of the attribute.
The value attribute returns the value of the attribute.
This is a Boolean attribute. If a value is assigned to the attribute, either in the original document or by code, this value will be true.
This value will be false if the attribute has a default value from the DTD, either because the value is #FIXED or a default is supplied for an enumerated attribute.
Read now
Unlock full access