Manipulating the DOM
Dom Video short Youtube video on Dom programming.
Manipulating the Nodes
You can use code to
- Add new elements or nodes
- Change the content of existing elements and nodes
- Delete selected elements/nodes
Node Methods supported by the DOM
Methods supported by the DOM which affect child nodes are
- insertBefore(newChild,refchild)
- replaceChild(newChild,oldChild)
- removeChild(oldChild)
- appendChild(newChild)
These methods allow us to replace the old, nonstandard
document.write technique