Document Object Model

/ डॉक्यूमेंट ऑब्जेक्ट मॉडल /Basic
Meaning in this fieldA tree-shaped structure that represents a web page, which JavaScript uses to read and change the page.

Effect at a glance

Every part of the page can be read and changed from code.

  1. The browser turns the page into a tree
  2. Code picks one part of it
  3. The change shows up on the page at once

Literal meaning

A model made of a document's objects.

Usage

Changing text on a click, or adding and removing parts of a page.

Example

A thank-you message appearing on the page right after you press Submit.
Caution: Making many changes again and again can slow the page down.

Related words

or