Javascript Reference
Categories: document

javascript document createElementNS( )

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

createElementNS("namespaceURI", "qualifiedName")

Generates in memory an instance of an element object associated with namespace, label, and tag passed as parts of the method's parameters. A newly created element has no attribute values assigned (except any default values assigned according to the DTD), nor is the element yet part of the document tree. Assign attributes (such as the type for an input element or id for any element), and append or insert the element into the document tree.

 
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

Element object reference.


Powered by Linode.