The Document Object Model (DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. ... As an object-oriented representation of the web page, it can be modified with a scripting language such as JavaScript.