JavaScript DOM HTML method: appendChild()
[this page | pdf | back links]
The appendChild() method (when applied to HTML elements
in the JavaScript
DOM) adds a
new child node after the last existing one of the element.
It
has the following syntax with the following parameters. It returns a
NodeList representing the added node.
element.appendChild(node)
Parameter
|
Required / Optional
|
Description
|
node
|
Required
|
The node object to be
appended
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)