Screen : Object

Provides information about the display screen and colors.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
3.0+1.0+2.0+7.0+1.0+

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of a Screen object.
3.0+1.0+2.0+7.0+1.0+
 

Properties

PropertyIEMozillaNetscapeOperaSafari
Available height (in pixels) of the screen (not allocated to a shortcut bar or similar feature).
4.0+1.0+4.0+7.0+1.0+
 
Available space (in pixels) at the far left of the screen (not allocated to a shortcut bar or similar feature).
no1.0+4.0+no1.0+
 
Available space (in pixels) at the top of the screen (not allocated to a shortcut bar or similar feature).
no1.0+4.0+no1.0+
 
Available width (in pixels) of the screen (not allocated to a shortcut bar or similar feature).
4.0+1.0+4.0+7.0+1.0+
 
Depth of the color palette for the screen.
4.0+1.0+4.0+7.0+1.0+
 
Total height of the display screen.
4.0+1.0+4.0+7.0+1.0+
 
Screen color resolution (in bits-per-pixel).
no1.0+4.0+7.0+1.0+
 
Total width of the display screen.
4.0+1.0+4.0+7.0+1.0+
 

References

Window.screen

Availability

JavaScript 1.2

Constructor Detail

Screen Screen()

Creates a new instance of a Screen object.

Visibility
internal

Property Detail

Object availHeight

Available height (in pixels) of the screen (not allocated to a shortcut bar or similar feature).

Object availLeft

Available space (in pixels) at the far left of the screen (not allocated to a shortcut bar or similar feature).

Object availTop

Available space (in pixels) at the top of the screen (not allocated to a shortcut bar or similar feature).

Object availWidth

Available width (in pixels) of the screen (not allocated to a shortcut bar or similar feature).

Number colorDepth

Depth of the color palette for the screen.

Object height

Total height of the display screen.

Object pixelDepth

Screen color resolution (in bits-per-pixel).

Object width

Total width of the display screen.