insertBefore (DOMNode - JavaScript)

Inserts a new node before an existing node.

Defined in

DOMNode

Syntax

insertBefore(newChild:DOMNode, refChild:DOMNode) : DOMNode