public insertBefore(newChild as Node, refChild as Node) as Node throws DOMException
Inserts a node before a reference child.
| Parameter | Description |
|---|---|
newChild | Node to insert. |
refChild | Reference child, or null to append. |
Inserted node.
parent.insertBefore(child, parent.firstChild)