Attr object (Object/DOM)

This is implemented in MSIE as an Attribute object.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Inherits from:Node object
JavaScript syntax:-myAttr = myDocument.createAttribute(aName)
Argument list:aNameThe name of the attribute to create

The DOM level 2 standard adds an ownerElement property to the Attr object specification. This is not yet supported in browsers.

See also:Attribute object, Document.createAttribute()

Inheritance chain:

Node object