The screen object typically contains the following properties (many browsers have added their own properties):
1.availHeight: The height of the screen (in pixels) that the window can use, including the space required by the operating system elements, such as the window toolbar.
2.availWidth: The width of the screen (in pixels) that the window can use.
3.colorDepth: User represents the number of bits of color, most systems use 32-bit.
4.height: The height of the screen, measured in pixels.
5.width: The width of the screen, calculated in pixels.
The availheight and Availwidth properties are useful when determining the size of a new window. For example, you can populate the user's screen with the following code:
Window.moveto (0,0);
Window.resizeto (Screen.availwidth,screen.availheight);
In addition, this data is used in conjunction with the site's traffic tools to determine the user's ability to accept graphics.
The screen object in JavaScript