O'Reilly logo

HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, Second Edition by Julie C. Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Working with the Document Object Model (DOM)

What You’ll Learn in This Chapter:

How the W3C DOM standard makes dynamic pages easier to control

The basics of the standard DOM objects: window, document, history, and location

How to work with DOM nodes, parents, children, and siblings

How to access and use the properties of DOM nodes

How to access and use DOM node methods

How to control element positioning with JavaScript

How to hide and show elements with JavaScript

How to add and modify text within a page with JavaScript

The preceding chapter introduced you to the basic concepts of programming in JavaScript; this chapter will help you better understand the Document Object Model (or DOM), which is the structured framework ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required