Appendix EDOM Quick Reference

This appendix presents a quick overview of the DOM objects available, including the basic level 0 DOM and the W3C level 1 DOM.

DOM Level 0

The level 0 DOM includes objects that represent the browser window, the current document, and its contents. The following is a basic summary of level 0 DOM objects.

By the Way

The level 0 DOM was an informal standard developed by Netscape when JavaScript was introduced. Its objects and properties are now formalized in the W3C DOM level 1 recommendation.

window

The window object represents the current browser window. If multiple windows are open or frames are used, there might be more than one window object. These are given aliases to distinguish them:

Get Sams Teach Yourself JavaScript in 24 Hours 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.