Programmer's Guide > Interfaces > W3C Node interface > removeChild method
  
removeChild method
Removes the child node indicated by oldChild from the list of children, and returns it.
removeChild(oldChild )
Parameters
NodeoldChild
The node being removed.
Returns
Node. The node removed.
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.