Easy Tutorial
❮ Dom Obj Meta Met Canvas Settransform ❯

HTML DOM removeChild() Method

Element Object

Example

Remove a node from the list of child nodes:

Before removal:

After removal:


Definition and Usage

The removeChild() method removes a node from the list of child nodes.

If successful, this method returns the removed node; if it fails, it returns NULL.


Browser Support

All major browsers support the removeChild method.


Syntax

Parameters

Parameter Type Description
node Node Object Required. The node object you want to remove.

Return Value

Type Description
Node Object The removed node

Technical Details

| DOM Version | Core Level 1 Node Object | | --- | --- |


Element Object

❮ Dom Obj Meta Met Canvas Settransform ❯