Javascript Reference
Categories: Element

javascript Element setAttributeNS( )

@March 15, 2008, 1:22 a.m.
setAttributeNS( )Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

setAttributeNS("namespaceURI", "qualifiedName", "value")

  

Inserts or replaces an attribute in the current element. If a match exists among the element's attributes for both the namespace URI and the qualified name passed as parameters, the new value is assigned to the existing attribute. If there is no match, the attribute is added to the element.

 
Parameters
 
  • URI string matching a URI assigned to a label earlier in the document.
  • The full name for the attribute, consisting of the local name prefix (if any), a colon, and the local name.
  • The string value for the attribute.
 
Returned Value

None.


Powered by Linode.