Creates an Attribute object with the specified name.

[VBScript]
Public Function CreateAttribute( _
   ByVal name As String _
) As Attribute
[JScript]
public function CreateAttribute(
   name : String
) : Attribute;

Parameters

name
The name of the attribute.

Return Value

The new Attribute.

Remarks

Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.

See Also

Document Object | Document Members | DOM Namespace