DHTML : The Document Object Model
Sékine Coulibaly
The DOM is Object-Oriented!
The goal of the DOM is to provide common foundations, and a unique view, for all platforms and, above all, for all browsers.
It acts as an interface between an HTML (or XML) document and a programming language such as JavaScript.
The DOM approach is that of object-oriented programming, which can be found in all programming languages such as C++, Java
and Pascal. In the DOM, a document has a logical structure, which is often represented in the form of a tree, but this arrangement
is not mandatory. This structure is a hierarchy of node objects, the root of which is the Document interface, representing
the entire HTML (or XML) document. The structure is made up of other objects that have properties and interfaces used to manipulate
the data elements they represent (paragraphs, images, tables, hyperlinks, etc.).
The DOM contains the generic name of each of its objects, their initial properties and the methods you can use to access and
manipulate them. Through JavaScript, you request the DOM to carry out actions. Is something still unclear? Don't worry, it
will all fall into place when you will put it into operation.