TOC PREV NEXT INDEX

Put your logo here!


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

core


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