4.15 DOM

The HTML document structure of any page is represented by the Document Object Model or DOM for short, specific to the page. It is the foundation for almost everything that JavaScript does on the client side. JavaScript has access to all elements of the DOM. Not only that, it can also manipulate the DOM, so that dynamism can be built at run time. HTML traversal leverages tag qualifiers like id and class.

4.15.1 The Bigger Picture of DOM

The Window object, as the name suggests, represents the objects present in the window. It is a key element housing the entire nodes like Document object, Navigator object, etc. This is the structure as implemented by any browser on a web page. However, the object hierarchy under the Document object is ...

Get Web Technology: Theory and Practice 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.