Javascript Reference
Categories: document

javascript document createAttributeNS( )

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

createAttributeNS("namespaceURI", "qualifiedName")

Generates in memory an instance of an attribute node (Attr object) whose name is defined in an external namespace. A typical sequence is to create the attribute, assign a value to it via its nodeValue property, and then insert the Attr node into an element's attribute list via the element's setAttributeNodeNS( ) method.

 
Parameters
 
namespaceURI

URI string that will match a URI assigned to a label earlier in the document into which the attribute is eventually added.

qualifiedName

The full name for the attribute, consisting of the local name prefix (if any), a colon, and the local name.

 
Returned Value

Attr node object reference.


Powered by Linode.