Table of Contents | Previous
| Next
| Index
Contains properties describing the display screen and colors.
The JavaScript runtime engine creates the screen
object for you. You can access its properties automatically.
This object contains read-only properties that allow you to get information about the user's display.
This object inherits the watch
and unwatch
methods from Object
.
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
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.
screen.availTop
Specifies the x-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.
screen.availWidth
Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.
screen.availHeight
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.
screen.availLeft
The bit depth of the color palette in bits per pixel, if a color palette is in use. Otherwise, this property is derived from screen.pixelDepth
.
Display screen height, in pixels.
Display screen color resolution, in bits per pixel.
Display screen width, in pixels.
Table of Contents | Previous
| Next
| Index
Last Updated: 05/28/99 12:00:21
Copyright (c) 1999
Netscape Communications Corporation