screen
Contains properties describing the display screen and colors.Created by
The JavaScript runtime engine creates thescreen object for you. You can access its properties automatically.
Description
This object contains read-only properties that allow you to get information about the user's display.Property Summary
| Method |
Description
|
|
|
|
|
|
|
| |
|---|
Method Summary
This object inherits thewatch and unwatch methods from Object.
Examples
The following function creates a string containing the current display properties:function screen_properties() {
document.examples.results.value = "("+screen.width+" x
"+screen.height+") pixels, "+
screen.pixelDepth +" bit depth, "+
screen.colorDepth +" bit color palette depth.";
} // end function screen_properties
availHeight
Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.See also
screen.availTop
availLeft
Specifies the x-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.See also
screen.availWidth
availTop
Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.See also
screen.availHeight
availWidth
Specifies the width of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.See also
screen.availLeft
colorDepth
The bit depth of the color palette in bits per pixel, if a color palette is in use. Otherwise, this property is derived fromscreen.pixelDepth. height
Display screen height, in pixels.pixelDepth
Display screen color resolution, in bits per pixel.width
Display screen width, in pixels.Table of Contents | Previous | Next | Index
Last Updated: 05/28/99 12:00:21
