Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

hasAttribute

Description

The hasAttribute of Element for JS returns true if element has an attribute whose qualified name is qualifiedName; otherwise false.

Syntax

element.hasAttribute(qualifiedName)

Parameters

qualifiedName

A qualified name.

Examples

1 · false

2 · true

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu