HTML DOM Document adoptNode()
HTML DOM Document adoptNode() Method
The adoptNode() method is used for adopting nodes from another document. We can assume nodes of any type. When it gets adopted, it also adopts all of its children.
Syntax:-
Its syntax is:- document.adoptNode(node)
Return:-
Its return is:- adopted node
Further Explanation:-
Parameter | Description |
node | Required. A node from another document of any type. |