For the complete documentation index, see llms.txt. This page is also available as Markdown.

removeAttribute

The removeAttribute() method removes a attribute from a element

Example

document.querySelector("body").removeAttribute("id")

Last updated