Node.insertBefore() (Method)

This method inserts a child element into the collection at the indicated position.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:Node object
JavaScript syntax:-myNode.insertBefore(aNode1, aNode2)
Argument list:aNode1The node to be inserted
aNode2The node indicating the insertion point

See also:Element.insertAdjacentText(), Node object