JavaScript from Beginner to Professional
by Laurence Lars Svekis, Maaike van Putten, Rob Percival, Codestars By Rob Percival
9
The Document Object Model
The Document Object Model (DOM) is a lot more exciting than it may sound at first. In this chapter, we will introduce you to the DOM. This is a fundamental concept you will need to understand before working with JavaScript on web pages. It grabs an HTML page and turns it into a logical tree. If you do not know any HTML, no worries. We start with an HTML crash course section that you can skip if you are familiar with HTML.
Once we are sure that we are on the same page with HTML knowledge, we will introduce you to the Browser Object Model (BOM). The BOM holds all the methods and properties for JavaScript to interact with the browser. This is information related to previous pages visited, the size of the window of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access