Replaces the child node oldChild with newChild node.

[VBScript]
Public Function ReplaceChild( _
   ByVal newChild As Node, _
   ByVal oldChild As Node _
) As Node
[JScript]
public function ReplaceChild(
   newChild : Node,
   oldChild : Node
) : Node;

Parameters

newChild
The new node to put in the list.
oldChild
The node being replaced in the list.

Return Value

The node replaced.

See Also

Node Object | Node Members | DOM Namespace