Removing Nodes Using the DOM | JavaScriptSource

Removing Nodes Using the DOM

JavaScriptSource Staff May 4, 2007

General

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.

Notes

Source Code

Paste this source code into the designated areas.

Snippet

Paste this code into your existing script


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

It works fine in FF 2.0.0.3. What version are you using?

Lee May 10, 2007

This doesn't appear to work in Firefox

Peter Reilly May 4, 2007