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.
Click this link to remove the section above.
- Created by: Brad
- Web Site: http://snippets.dzone.com/posts/show/2598
- Posted: May 4, 2007
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