Chapter 17The Document Object and the History List

The document Object

The document object is a property of the window object. Every window object, whether it is a full browser window, a frame, or a JavaScript-generated window, has a document property. This property is actually an object itself; you can think of it as a subobject of the window object. The document object encapsulates everything that exists in the content region of the browser’s window or frame. It is the parent object of the web page’s content, including links, anchors, colors, titles, and so forth. The document object’s properties are spread over the entire HTML document. Some are commonly placed in the head portion, while others are normally found in the body portion. The document ...

Get Advanced Javascript, 3rd Edition 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.