'replaceChild()' Syntax, Parameters and Note : replaceChild « Javascript Methods « JavaScript Reference

'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.

    

      
      








Related examples in the same category

1.'replaceChild()' Example
2.'replaceChild()' is applied to