adding an element to a node code example Example: appendchild on specific position parentElement.insertBefore(newElement, parentElement.children[2]);