Changing the Document Tree
In this lesson we will learn how to change the content of elements in a document through simple coding examples.
We'll cover the following...
It is great that you can traverse through the document tree and access its content. However, it is just a single step toward creating interactive pages.
The more exciting thing is to change the structure and content of the tree, and it opens totally new horizons to vivify your web pages.
The DOM contains about a dozen useful operations that allow you to change the document tree. Among the others, you can insert new elements, remove existing ones, ...
Access this course and 1400+ top-rated courses and projects.