TOC PREV NEXT INDEX

domref



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

removeAttribute
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX