importNode method
Imports a node from another document into the the document that the document object displays.
![]() ![]() |
Syntax
var ppNodeDest = document.importNode(pNodeSource, fDeep);Parameters
- pNodeSource [in]
-
Type: IHTMLDOMNode
A reference to the element object that refers to the node to move.
- fDeep [in]
-
Type: Boolean
- ppNodeDest [out, retval]
-
Type: IHTMLDOMNode3
A reference to the element object that refers to the node that has been imported, or a null value if the node cannot be imported.
Return value
Type: IHTMLDOMNode3
A reference to the element object that refers to the node that has been imported, or a null value if the node cannot be imported.
Standards information
Examples
The following code example illustrates the importNode method.
var oNode = document.importNode( oXHTMLNode, FALSE );
parent.appendChild( oNode );
See also
Show:

