The hasAttribute JS Element returns true if element has an attribute whose qualified name is qualifiedName; otherwise false.
Syntax
element.hasAttribute(qualifiedName)
Parameters
qualifiedName
A qualified name.
The hasAttribute JS Element returns true if element has an attribute whose qualified name is qualifiedName; otherwise false.
element.hasAttribute(qualifiedName)
A qualified name.