In the last DOM article, you learned that the DOM represents the contents of a Web page as a “tree” of JavaScript objects. By accessing the parts of the tree, called the nodes, you can read existing page content, alter content, and even add new content from scratch.
In this article you’ll learn how to locate and retrieve the elements of a Web page using JavaScript and the DOM.