Adding Nodes
Deleting Nodes
Deleting Specific Nodes
Inserting Nodes
Replacing Nodes
To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.
See it run: Deleting Nodes
This JavaScript adds a link, rather than a button, to delete a text node.
Using this JavaScript, the user can both add and delete text.