JavaScript and the DOM
JavaScript and the DOM (Document Object Model) are the core technologies for creating interactive web pages. The DOM is a programming interface provided by the browser that represents a web page's structure as a logical tree of objects, where every HTML element, attribute, and piece of text is a node. JavaScript is the scripting language used to access and manipulate this tree, allowing developers to dynamically add, remove, or modify page content, structure, and styles in response to user actions like clicks and keyboard input, thereby transforming static documents into rich, interactive applications.
- Introduction to the Document Object Model (DOM)
Go to top
Next
2. Selecting DOM Elements