25.29. The Screen Object

The Screen object, accessible through the global screen variable, contains information about the current screen's resolution and color.

Properties

availHeight This read-only property gives the height of the screen (in pixels), minus space occupied by semipermanent user interface elements such as the Windows 98 task bar.

availWidth This property gives the width of the screen (in pixels), minus space occupied by semipermanent user interface elements. It is read-only.

colorDepth This property specifies the number of simultaneous colors that can be displayed. It is read-only.

height This read-only property gives the height of the screen in pixels.

width This read-only property gives the width of the screen in pixels.

pixelDepth ...

Get Core Web Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.