how to remove and attribute in js code example Example: remove attribute javascript document.getElementsByTagName("H1")[0].removeAttribute("class");