removeChild
The removeChild() method removes a child node from the current element.
Syntax
oldChild = element.removeChild(child)Parameters
oldChild is the node that needs to be removed.
Example
// <div id="top" align="center"><div id="nested"/></div> d = document.getElementById("top"); d_nested = document.getElementById("nested"); throwaway_node = d.removeChild(d_nested);
Notes
Specification
removeChild
Netscape Communications http://developer.netscape.com |