Name
HTMLElement.removeAttribute( ) — delete an attribute
Availability
Internet Explorer 4, Netscape 6
Synopsis
element
.removeAttribute(name
)
Arguments
-
name
The name of the attribute to be deleted.
Returns
true
on success; false
on
failure.
Description
removeAttribute( )
deletes the attribute
name
from
element
. If
element
does not have an attribute named
name
, this method returns
false
.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.