Sets the value of the attribute with the specified name.

[VBScript]
Public Sub SetAttribute( _
   ByVal name As String _
   ByVal value As String _
)
[JScript]
public function SetAttribute(
   name : String
   value : String
);

Parameters

name
The name of the attribute to create or alter.
value
The value to set for the attribute.

See Also

Element Object | Element Members | DOM Namespace