What is DOM?
The tree of boxes on the page, live on the screen. JavaScript finds a box in it and changes it: swaps the text, shows it, or hides it. It can only find what has already been built.
Also called: Document Object Model.
An analogy
Looking for a piece of furniture in a house still being built: it only shows up after its wall goes up.
Where it shows up in the course
- JavaScript, the DOM, and events
- Front-end security: stopping XSS
- Catch-the-Impostor