Export (0) Print
Expand All

adoptNode method

Tries to move a node from one document to the document that the document object displays.

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

 

Syntax


HRESULT retVal = object.adoptNode(pNodeSource, ppNodeDest);

Parameters

pNodeSource [in]

Type: IHTMLDOMNode

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

ppNodeDest [out, retval]

Type: IHTMLDOMNode3

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

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

 

Standards information

 

 

Community Additions

ADD
Show:
© 2014 Microsoft