replaceChild (DOMNode - JavaScript) Replaces a child node. Defined inDOMNode SyntaxreplaceChild(newChild:DOMNode, refChild:DOMNode) : DOMNode