Introduction to the DOM This article was originally written for DigitalOcean . Introduction The Document Object Model , usually referred to as the DOM , is an essential part of making websites interactive. It is an interface that allows a programming language to manipulate the content, structure, and style of a website. JavaScript is the client-side scripting language that connects to the DOM in an internet browser. Almost any time a website performs an action, such as rotating between a slideshow of images, displaying an error when a user attempts to submit an incomplete form, or toggling a navigation menu, it is the result of JavaScript accessing and manipulating the DOM. In this article, we will learn what the DOM is, how to work with the document object, and the difference between HTML source code and the DOM. Note: Although the DOM is language agnostic, or created to be independent from a particular programming language, throughout this resource ...