javascript implementation createDocument( )
| createDocument( ) | NN 6 IE n/a 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. |
|
1004,Nickname,Homepage or email,Comments here,Add comment
