Home > Element Reference : Screen

Contents

### Screen

An object that can provide information about the user's display. It also supports users who have multiple monitors on some platforms. These properties are read-only. You can get a screen object from the window object's screen property.

#### Properties and Methods:

availHeight

Returns the height of the total available virtual surface area of the user's display. If the user has multiple monitors, the total combined area is used. The size of operating system chrome such as the Windows taskbar and the Macintosh menu bar is subtracted from the result.

availLeft

Returns the left pixel position of the total available virtual surface area of the user's display.

availTop

Returns the top pixel position of the total available virtual surface area of the user's display.

availWidth

Returns the width of the total available virtual surface area of the user's display. If the user has multiple monitors, the total combined area is used. The size of operating system chrome such as the Windows taskbar and the Macintosh menu bar is subtracted from the result.

colorDepth

The color depth of the display, which is usually the same as the pixel depth.

height

Returns the height of the monitor on which the window is located.

left

Returns the left pixel position of the monitor on which the window is located. For users with one monitor, this will be 0.

pixelDepth

The pixel depth of the display.

top

Returns the left pixel position of the monitor on which the window is located. For users with one monitor, this will be 0.

width

Returns the width of the monitor on which the window is located.

Copyright (C) 1999 - 2002 XULPlanet.com