HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

replaceChildren

Description

The replaceChildren of ParentNode for JS replaces all the children of the node with nodes, while replacing the strings in the nodes with equivalent text nodes.

Syntax

node.replaceChildren(nodes)

Parameters

nodes

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

Examples

1

2

3

4