getAttribute (DOMElement - JavaScript)

指定された名前を持つこのエレメントの属性を取得します。

定義場所

DOMElement

構文

getAttribute(name:string) : string