What this chapter covers:
The concept of nodes
Five very handy DOM methods:
getElementById, getElementsByTagName, getElementsByClassName, getAttribute, and
It's time to meet the DOM. This chapter introduces you to the DOM and shows you the world through its eyes.
The DOM can't work without a document. When you create a web page and load it in a web browser, the DOM comes to life. It takes the document that you have written and turns it into an object.
In normal everyday English, the word object isn't very descriptive. It simply means thing. In programming languages, on the other hand, object has a very specific meaning.
At the end of the previous chapter, you saw some ...