Node.replaceChild()
JavaScript’s Node.replaceChild() method replaces a child node within the Node.
JavaScript’s Node.replaceChild() method replaces a child node within the Node.
JavaScript’s Node.appendChild() method adds a child node to the end of the list of the Node’s children.
JavaScript’s Element.before() method inserts a set of Node or string objects before the Element.
JavaScript’s Element.after() method inserts a set of Node or string objects after the Element.
JavaScript’s Element.prepend() method inserts a set of Node or string objects before the first child of the Element.
JavaScript’s Element.append() method inserts a set of Node or string objects after the last child of the Element.
The JavaScript Guide is your companion to learning JavaScript programming in a hands-on manner.