Working with DOM Elements

  • Adam Freeman


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.


Text Content Document Model Attribute Property Element Object Current Element 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Adam Freeman 2011

Authors and Affiliations

  • Adam Freeman

There are no affiliations available

Personalised recommendations