removeChild method

[This documentation is preliminary and is subject to change.]

Removes a child node from the object.

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


IHTMLDOMNode retVal = object.removeChild(oldChild);

Standards information


  • oldChild [in]
    Type: IHTMLDOMNode

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


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.



Build date: 1/26/2012