InterviewSolution
Saved Bookmarks
| 1. |
What is the purpose of the adoptNode() method?(a) Removes node(b) Makes it ready for insertion(c) Removes node and Makes it ready for insertion(d) Changes the node |
|
Answer» The correct answer is (c) Removes node and Makes it ready for insertion Best explanation: This method removes the node from whatever document it is currently part of and changes its ownerDocument property to this document, making it ready for insertion into this document. The adoptNode() method adopts a node from another document. The adopted node can be of all node types. |
|