Adds the specified Attribute.

[VBScript]
Public Function SetAttributeNode( _
   ByVal newAttr As Attribute _
) As Attribute
[JScript]
public function SetAttributeNode(
   newAttr : Attribute
) : Attribute;

Parameters

newAttr
The Attribute node to add to the attribute collection for this element.

Return Value

If the attribute replaces an existing attribute with the same name, the old Attribute is returned, otherwise null is returned.

See Also

Element Object | Element Members | DOM Namespace