Removes a child node from the object.
HRESULT removeChild( IHTMLDOMNode *oldChild, IHTMLDOMNode **node );
- [in] Pointer to an IDispatch that specifies the element to be removed from the document.
- [out, retval] Address to a pointer that returns a reference to the object that is removed.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR An attempt is made to modify an object that cannot be changed. W3CException_DOM_NOT_FOUND_ERR The specified node cannot be found. W3CException_DOM_NOT_SUPPORTED_ERR The requested operation is not supported.
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.
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.