remove element attribute javascript code example
Example 1: remove attribute javascript
document.getElementsByTagName("H1")[0].removeAttribute("class");
Example 2: html how to remove attribute#
element.removeAttribute(attributename)
document.getElementsByTagName("H1")[0].removeAttribute("class");
element.removeAttribute(attributename)