Name
removeAttribute: name
Synopsis
Removes the named attribute from this element's
attributes
collection. If the
attribute to be removed has a default value declared in the DTD,
subsequent attempts to retrieve the attribute value return the
default value.
Argument
- name: DOMString
Name of the attribute to remove.
Exception
- NO_MODIFICATION_ALLOWED_ERR
Raised if the element is read-only.
Java binding
public void removeAttribute(String name) throws DOMException;
Java example
// Remove the unique ID
...
elem.removeAttribute("id");
...