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

getAttributeNS

Description

The getAttributeNS of Element for JS returns element’s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

Syntax

element.getAttributeNS(namespace, localName)

Parameters

namespace

A null or a non-empty string.

localName

A local name.

Examples

1 · null

2 · namespace localName

attachShadow

classList

className

closest

getAttribute

getAttributeNames

hasAttribute

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