DOM - AppendChild
Table of Contents
About
AppendChild is a node dom tree operation that:
- adds (a new node)
- move (a node of the DOM tree)
as children at the end of all already existing children of this node.
Syntax
returnedValue = node.appendChild(Node|documentFragment)
where:
- returnedValue is:
- the appended child if the argument is a node
- the empty DocumentFragment if the argument is a DocumentFragment