Chapter 19. The Document Object Model

by Jim O'Donnell

In this chapter

Web Browser Object Hierarchy and Scoping

The window Object

The location Object

The history Object

The document Object

JavaScript Object Arrays

The link, area, and anchor Objects

The form Object

The image Object

In Chapter 18, "Introduction to JavaScripting," you learned the basics of JavaScript—its syntax, control structures, and how to use it to access and manipulate objects. To be useful, however, something to manipulate is needed. How does JavaScript (or any other scripting language, for that matter) interact with your Web browser?

The answer is the Document Object Model. Each script-compatible Web browser, mainly Netscape Navigator and Microsoft Internet Explorer, exposes ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.