Section 25.252. Synopsis


25.252. Synopsis

 screen 

25.252.1. Properties


availHeight

Specifies the available height, in pixels, of the screen on which the web browser is displayed. On operating systems such as Windows, this available height does not include vertical space allocated to semipermanent features, such as the task bar at the bottom of the screen.


availWidth

Specifies the available width, in pixels, of the screen on which the web browser is displayed. On operating systems such as Windows, this available width does not include horizontal space allocated to semipermanent features, such as application shortcut bars.


colorDepth

Specifies the color depth of the screen in bits per pixel.


height

Specifies the total height, in pixels, of the screen on which the web browser is displayed. See also availHeight.


width

Specifies the total width, in pixels, of the screen on which the web browser is displayed. See also availWidth.

25.252.2. Description

The screen property of every Window refers to a Screen object. The properties of this global object contain information about the screen on which the browser is displayed. JavaScript programs can use this information to optimize their output for the user's display capabilities. For example, a program can choose between large and small images based on the display size and between 8-bit and 16-bit color images based on the screen's color depth. A JavaScript program can also use the information about the size of the screen to center new browser windows on the screen.

25.252.3. See Also

The screen property of the Window object




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net