This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

removeAttribute

Summary

Removes a specified content attribute from an element.

Method of dom/Elementdom/Element

Syntax

 element.removeAttribute(name);

Parameters

name

Data-type
String

The name of the attribute.

Return Value

No return value

Usage

 Use this method to remove a content attribute from an element.

Notes

  • The attribute to remove may not exist in the first place.

Related specifications

Document Object Model (DOM) Level 3 Core
Recommendation
Document Object Model (DOM) Level 2 Core
Recommendation
Document Object Model (DOM) Level 1
Recommendation
DOM
Living Standard

See also

Related pages

Attributions