setAttribute (DOMElement - JavaScript)

Sets an attribute value for this element.

Defined in

DOMElement

Syntax

setAttribute(name:string, value:string) : void