What is the DOM in JavaScript?

The DOM (Document Object Model) is a tree of objects that the browser creates from the HTML. Each tag becomes a node. JavaScript can use the DOM to read and change the content, style and structure of the page.

document.getElementById("title").textContent = "New title";

See JavaScript HTML DOM.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.