setAttribute (DOMElement - JavaScript)

このエレメントの属性値を設定します。

定義場所

DOMElement

構文

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