O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required