TOC PREV NEXT INDEX

Put your logo here!


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

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX