Search⌘ K

JavaScript: DOM

Explore the JavaScript Document Object Model (DOM) to understand how web pages are structured as a tree of elements. Learn to access and manipulate these nodes using JavaScript, enabling you to dynamically update and interact with HTML content on web pages.

We'll cover the following...

Introduction

Coming to the displayed web page, the DOM includes all that. The DOM consists of visible objects and elements. In JavaScript, use the DOM object to access the document and related elements.

The DOM is a tree of all elements on the web page, which can act as a map of the HTML tree.

HTML and DOM

HTML (HyperText Markup Language) is a language used to create web pages. An HTML page is a file with ...