element.removeAttribute code example
Example 1: remove attribute javascript
document.getElementsByTagName("H1")[0].removeAttribute("class");
Example 2: delete attribute javascript
var target = document.getElementById("p12");
target.removeAttribute("class");