Unit 7.3. The Document Object Model


The Document Object Model, or DOM, is the hierarchical structure that allows you to access the different parts of a browser and the components of a document using a scripting language. The DOM itself is actually a part of the browser and not of JavaScript. JavaScript uses a browser’s DOM to navigate around the browser and document. Furthermore, any other scripting language can access the browser’s DOM. JavaScript just happens to be one of the most widely used scripting languages at this time.

The DOM is object-based. When a document is loaded into a browser, the browser creates objects corresponding to each component of the document. JavaScript is then able to access these DOM objects to get information ...

Get Oracle® Web Application Programming for PL/SQL® Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.