Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Though leaves are many, the root is one.
āWilliam Butler Yeats
Most of us become parents long before we have stopped being children.
āMignon McLaughlin
Sibling rivalry is inevitable. The only sure way to avoid it is to have one child.
āNancy Samalin
Objectives
In this chapter you will:
⢠Use JavaScript and the W3C Document Object Model to create dynamic web pages.
⢠Learn the concept of DOM nodes and DOM trees.
⢠Traverse, edit and modify elements in an HTML5 document.
⢠Change CSS styles dynamically.
⢠Create JavaScript animations.
12.2 Modeling a Document: DOM Nodes and Trees
12.3 Traversing and Modifying a DOM Tree
12.6 Using a Timer and Dynamic Styles to Create Animated Effects