The removeAttribute() method removes a attribute from a element
Attribute()
Example
document.querySelector("body").removeAttribute("id")
Last updated 1 year ago
Was this helpful?