Determines whether the current node has an attribute with the specified name.

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

Parameters

name
The name of the attribute to find.

Return Value

true if the current node has the specified attribute; otherwise, false.

See Also

Element Object | Element Members | DOM Namespace