The screen Object
object is considered part of
window object and provides information about the user's screen.
screen object properties can be used with the
window objects methods to set the size and position of the browser window.
The general format of the
window.screen object or simply
screen is shown below:
Figure 7-24. General format to reference properties of the
For each of the following properties, its value is shown for the browser you are using to view this page.
document.getElementById("output").innerHTML = screen.property;
||Description and Current Setting
||The total width of the user's screen in pixels:
||The total height of the user's screen in pixels:
||The available width of the user's screen in pixels:
||The available height of the user's screen in pixels:
||The bit depth of the color palette for displaying images: