TOC PREV NEXT INDEX

Put your logo here!


removeAttribute


The removeAttribute() method removes an attribute from the current element.

Syntax

element.removeAttribute(attName) 

Parameters

attName is a string that names the attribute to be removed from the current node.

Example

// <div align="left" width="200px" /> 
d = document.getElementById("div1"); 
d.removeAttribute("align"); 
// now: <div width="200px" /> 

Notes

removeAttribute allows you to change the attribute list dynamically on the current node.

Specification

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX