Removing Nodes Using the DOM | JavaScriptSource

Removing Nodes Using the DOM

JavaScriptSource Staff 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.


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

Leave a Response


It works fine in FF What version are you using?

Lee May 10, 2007

This doesn't appear to work in Firefox

Peter Reilly May 4, 2007