What is the model of the document object?

The document model (DOM) is a visual representation of hierarchical templates or maps of all objects and properties contained in the web document and can be recognized by a web browser. This browser object also specifies different methods or actions available to a programmer that can be done on objects or with objects. The document model is a representation of programming or more precisely the possibility of scripting. Although the main browsers support a general house, scripts that work in one browser may not be in another functional. However, programmers can safely work with objects, properties and methods according to the basic DOM that is common to all major Internet browsers. They can and often contain many properties and behave in different ways due to the variety of methods that Programmer may apply to document objects. For example, images may appear in a document and are considered objects in a document that is the object itself.

Links

There are also objects on which programmers can use methods or perform actions, for example with a change in the color of the links when the mouse is hovering or appears or a change. DOM scripting includes coding or writing small computer programs known as scripts that are built into web documents. These scripts add a feature to the website, including, but not only to verify forms, virtual calculators, pop -ups, simple games, quizzes and even animations.

programmers create the code according to the possibility of model of the document object they work with if they decide to coded very conservatively using a general DOM to avoid the possibility of browser compatibility. The model of the document object is important for programmers who write as scripts on the client side in the website development. Web documents are stored on a web server that delivers the website to the client countOr, which demanded them and which visually represent them to the visitor's website through a browser. The scripts built into the website stored on the web server must run on the client computer according to the model of the browser document object.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?