Node.InsertBefore Method |
Inserts the specified node immediately before the specified reference node.
[VBScript] Public Function InsertBefore( _ ByVal newChild As Node, _ ByVal refChild As Node _ ) As Node
[JScript] public function InsertBefore( newChild : Node, refChild : Node ) : Node;
The node being inserted.
If refChild is a null reference, insert newChild at the end of the list of child nodes. If the newChild is already in the tree, it is first removed.