TOC PREV NEXT INDEX

domref



removeAttributeNS


The removeAttributeNS() method removes an attribute with the specified namespacde and name.

Syntax

element.removeAttribute(namespace, attName)
 

Parameters

namespace is a string that contains the namespace of the specified attribute.

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

Example

// <div special-align="utterleft" width="200px" />
 
d = document.getElementById("div1");
 
d.removeAttributeNS(
  "http://www.mozilla.org/ns/specialspace",
 
  "special-align");
 
// now: <div width="200px" />
 

Notes

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

Specification

removeAttributeNS
 


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