레퍼런스 removeAttribute()

removeAttribute()

Removes an attribute from the element.

The parameter attr is the attribute's name as a string. For example, calling myElement.removeAttribute('align') removes its align attribute if it's been set.

예제

구문

removeAttribute(attr)

매개변수

attr
String: attribute to remove.

관련 레퍼런스