/

HTML / CSS / JavaScript Tutorial

JavaScript DOM HTML method: removeAttribute()

[this page | pdf | back links]

The removeAttribute() method (when applied to HTML elements in the JavaScript DOM) removes the specified attribute.

 

It has the following syntax with the following parameters. It does not return a value.

 

element.removeAttribute(attributename)

 

Parameter

Required / Optional

Description

attributename

Required

String defining name of attribute to be removed

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile