/

HTML / CSS / JavaScript Tutorial

JavaScript Document own method: adoptNode()

[this page | pdf | back links]

The adoptNode() method (when applied to the document object of the JavaScript DOM) adopts a node from another document.

 

It has the following syntax with the following parameters. It returns a node object, representing the adopted node.

 

document.adoptNode(node)

 

Parameter

Required / Optional

Description

node

Required

Node object (of any type) from another node

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile