C H A P T E R  28

Working with DOM Elements

In the previous chapter, some of the features of the HTMLElement object leaked through into the discussion of the document-level features. We can now turn our focus toward the element object itself and give it the attention it deserves. In this chapter, I'll show you the different HTMLElement properties and methods, and demonstrate how to use them. Table 28-1 provides the summary for this chapter. Please note that not all of the examples work in all of the mainstream browsers.

Image

Image

Working with Element Objects ...

Get The Definitive Guide to HTML5 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.