Element.hasAttribute

Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

interface Element
bool
hasAttribute
(
DOMString name
)

Meta