Javascript Reference
Categories: implementation

javascript implementation createDocument( )

@May 14, 2009, 3:50 p.m.
createDocument( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

createDocument("namespaceURI", "qualifiedName", docTypeReference)

  

Returns a reference to a newly created virtual W3C DOM Document (not the document node of an HTML document) object. Netscape 6 extends this Document object with a load( ) method that permits the loading of XML documents into the browser, although they are invisible to the user. Scripts may then access the document tree of the XML document as a data source for rendering information in the HTML document. If you are loading an external XML document, you can create the Document object with blank values for the three parameters:

var myXDoc = document.implementation.createDocument("", "", null);
 

When the external document loads, any namespace and DOCTYPE concerns will be controlled by the document's content. 

 
Parameters
 
 
Returned Value

Reference to an empty Document object.

Buy Card Pistol AK-74 and download https://cyberia.plati.market//itm/card-pistol-ak-74/1888229
Darinakew - 3 years

Powered by Linode.