welcome to the next level
201
Wanted: easy-to-update web pages. It’s time to take things
into your own hands, and start writing code that updates your web pages
on the y. Using the Document Object Model, your pages can take on
new life, respond to users’ actions, and help you ditch unnecessary page
reloads forever. By the time you’re done with this chapter, you’ll be able to
add, remove, and update content virtually anywhere on your web page. So
turn the page, and let’s take a stroll through the Webville Tree Farm.
4
Web Page Forestry
the Document Object Model
I’ve really taken
control of my DOM
trees. A little pruning
here, a bit of snipping there,
and my web pages are
more dynamic than
ever.