insertBefore
The insertBefore()
method of the Node interface inserts a node before a reference node as a child of a specified parent node.
The insertBefore()
method of the Node interface inserts a node before a reference node as a child of a specified parent node.