Jaa


importNode method

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

 

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 code Description
S_OK

The operation completed successfully.

 

Standards information