TOC PREV NEXT INDEX

domref



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.

child is a node.

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

None.

Specification

removeChild
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX