DOM stands for Document Object Model. Document Object Model or DOM is a set of objects that allow programmers scripts to integrate with the browser and work with documents, windows, forms, and other components.
The following list denotes HTML DOM objects that are used for providing information about the environment of the user’s system. These objects are used to provide various information about the user’s environment like screen size, resolution, monitor depth, browser history, the URL, operating system, browser type, version, language and so on. The objects are:
Associated with each of these objects are properties and methods.
The following list gives some of the properties and methods of the Window object.
Properties of Window Object:
Methods of Window Object:
There are various properties associated with the Screen object.
Properties of Screen Object:
In the next sections, the usage, syntax and explanation with examples of each of the properties of the Screen object will be discussed.
This object is used to obtain information about the type of browser being used to access the page. Using this information, the user can be directed to a different page or carry out tasks or functions depending upon the user’s browser.
The following list gives some of the properties and methods of the Navigator object.
Properties of Navigator Object:
Methods of Navigator Object:
The following list gives some of the properties and methods of the History object.
Property of History Object:
Methods of History Object:
Syntax and explanation with examples of History object properties and methods are discussed in coming sections.
Location object contains information about the current URL and thus this object provides access and control over the URL of the current window. But one important point to note in this context is that it cannot modify the URL displayed in the browser’s address box and thus adds security in its usage. Since it is part of the Window object it is accessed using the window.location property.
Properties of Location Object:
Methods of Location Object: