Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

importNode method

Imports a node from another document into the the document that the document object displays.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

Syntax


HRESULT retVal = object.importNode(pNodeSource, fDeep, ppNodeDest);

Parameters

pNodeSource [in]

Type: IHTMLDOMNode

A reference to the IHTMLDOMNode interface that refers to the node to move.

fDeep [in]

Type: VARIANT_BOOL

VARIANT_TRUE (true)

Child nodes of the node specified by the pNodeSourceparameter are also imported.

VARIANT_FALSE (true)

Child nodes of the node specified by the pNodeSourceparameter are not imported.

ppNodeDest [out, retval]

Type: IHTMLDOMNode3

A reference to the IHTMLDOMNode3 interface that refers to the node that has been imported, or a NULL value if the node cannot be imported.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

 

Standards information

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.