Chapter 11. Working with Forms and Input Devices

image

11.1 The Document Object Model and the Legacy DOM 0

If you recall from Chapter 1, “Introduction to JavaScript,” a document object model is a way of conceptualizing a Web page where the document is represented as a tree structure. In Chapter 10, “It’s the BOM! Browser Objects,” we addressed the browser object model (BOM). The properties and methods of different browsers vary because there is no standard for defining what a browser does. The DOM, on the other hand, deals specifically with a document, and there are now standards that dictate how the objects in an HTML (or XML) page should be represented. ...

Get JavaScript by Example 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.