adoptNode method
Tries to move a node from one document to the document that the document object displays.
![]() ![]() |
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 code | Description |
|---|---|
|
The operation completed successfully. |
Standards information
Show:

