Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

removeChild method

Removes a child node from the object.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4



IHTMLDOMNode retVal = object.removeChild(oldChild);


oldChild [in]


Pointer to an IDispatch that specifies the element to be removed from the document.

Standards information


The node to be removed must be an immediate child of the parent object.

This method is accessible at run time. If elements are removed at run time, before the closing tag is parsed, areas of the document might not render.

Windows Internet Explorer 9. Exceptions are only supported when webpages are displayed in IE9 Standards mode.

In Microsoft Internet Explorer 6, This method now applies to the attribute object.



Community Additions

© 2015 Microsoft