Make my own web site - A Attribute object (Object/DOM) Inherits from: Node

A Attribute object (Object/DOM) Inherits from: Node object JavaScript syntax: -myAttr = myDocument.createAttribute(aName) Argument list: aName The 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 Attribute object (Object/DOM) A DOM object that represents an HTML tag attribute. Availability: DOM level 1 JavaScript 1.5 JScript 5.0 Internet Explorer 5.0 Netscape 6.0 Inherits from: Node object -myAttribute = myAttributes.aPropertyName -myAttribute = myAttributes[anIndex] -myAttribute = myAttributes[aName] JavaScript syntax: -myAttribute = myDocument.createAttribute(aName) aPropertyName The name of the tag attribute aName An attribute name Argument list: anIndex A valid numeric reference to an element in the collection Object properties: name, nodeName, nodeType, nodeValue, specified, value This is used by the browser to maintain property values for HTML tag instantiated objects. This object represents a single HTML tag attribute. The properties of this object indicate whether the tag attribute has been specified or not, and if it has, what the current value is. The Element object should contain enough information for you to be able to determine the instantiating source tag name. The attributes can be inspected with a script and the complete source HTML reconstructed from a combination of the information supplied by the element and its associated attributes collection.

Leave a Reply