Screen Object
The Screen object is automatically created by the JavaScript runtime engine and it contains information about the client's display screen. Its properties are described below:
Note: The Screen object is not a W3C standard.
The Screen object's properties are described below:
N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, W3C: World Wide Web Consortium (Internet Standard)
Properties
Syntax: screen.property_name
Property |
Description |
N |
IE |
W3C |
availHeight |
Returns the height of the display screen - excluding the
Windows Taskbar |
4 |
4 |
No |
availWidth |
Returns the width of the display screen - excluding the
Windows Taskbar |
4 |
4 |
No |
bufferDepth |
Sets or returns the bit depth of the color palette in the
off-screen bitmap buffer |
|
4 |
No |
colorDepth |
Returns the bit depth of the color palette on the
destination device or buffer |
4 |
4 |
No |
deviceXDPI |
Returns the number of horizontal dots per inch of the
display screen |
|
6 |
No |
deviceYDPI |
Returns the number of vertical dots per inch of the display
screen |
|
6 |
No |
fontSmoothingEnabled |
Returns whether the user has enabled font smoothing in the
display control panel |
|
4 |
No |
height |
The height of the display screen |
4 |
4 |
No |
logicalXDPI |
Returns the normal number of horizontal dots per inch of
the display screen |
|
6 |
No |
logicalYDPI |
Returns the normal number of vertical dots per inch of the
display screen |
|
6 |
No |
pixelDepth |
Returns the color resolution (in bits per pixel) of the
display screen |
4 |
|
No |
updateInterval |
Sets or returns the update interval for the screen |
|
4 |
No |
width |
Returns width of the display screen |
4 |
4 |
No |
|