append

The append JS ParentNode inserts nodes after the last child of the node, while replacing the strings in the nodes with equivalent text nodes.

Syntax

node.append(nodes)

Parameters

nodes

Objects that implement Node. Nodes participate in a tree, which is known as the node tree.

Examples

1

2

3

4

children

firstElementChild

lastElementChild

prepend

querySelector

querySelectorAll

replaceChildren

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu