10. Document Object Model (DOM): Objects and Collections

OBJECTIVES

In this chapter you’ll learn:

• To use JavaScript and the W3C Document Object Model to create dynamic web pages.

• The concepts of DOM nodes and DOM trees.

• To traverse, edit and modify elements in an XHTML document.

• To change CSS styles dynamically.

• To create JavaScript animations.

Our children may learn about heroes of the past. Our task is to make ourselves architects of the future.—Jomo Mzee Kenyatta

Though leaves are many, the root is one.—William Butler Yeats

The thing that impresses me most about America is the way parents obey their children.—Duke of Windsor

Most of us become parents long before we have stopped being children.—Mignon McLaughlin

To write it, it ...

Get JavaScript™ for Programmers: Deitel now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.