Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

ReplaceChild() Syntax, Parameters and Note

Note: Replaces one element node with another.      Syntax:      document.getElementById("elementID").replaceChild(param1, param2)  document.all.elementID.replaceChild(param1, param2) // IE only Parameters:     param1   Required; the replacement element node.     param2   Required; the element node to be replaced.