Returns the value for the attribute with the specified name.

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

Parameters

name
The name of the attribute to retrieve.

Return Value

The attribute value as a string, or an empty string if that attribute does not have a specified or default value.

See Also

Element Object | Element Members | DOM Namespace