getAttribute (DOMElement - JavaScript)

Gets the attribute for this element with the given name.

Defined in

DOMElement

Syntax

getAttribute(name:string) : string