Removing Nodes Using the DOM

By JavaScriptSource Staff on May 4, 2007


You can remove existing nodes using the DOM. The removeChild method allows any node to remove one of its child nodes. Simply pass a reference to the node you wish to remove. Any text or elements within the node being removed will be removed along with it.

Remove a section

Ma quande lingues coalesce, li grammatica del resultant lingue.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Click this link to remove the section above.


  • Created by: Brad
  • Web Site:
  • Posted: May 4, 2007

Source Code

Paste this source code into the designated areas.


Paste this code into your existing script


Paste this code into the BODY section of your HTML document