screen

JavaScript 1.2+, JScript 3+ Nav4+, IE4+ Syntax

Core client-side JavaScript object.

Description

The screen object provides a programmer with access to various properties of the user's screen. These properties are often accessed and used sizing windows that various scripts open. Table 7.42 shows the properties of the screen object.

Table 7.42. Properties of the screen Object
Item Description
availHeight Accesses the pixel height of the user's screen, minus the toolbar or any other "permanent" objects.
availWidth Accesses the pixel width of the user's screen, minus the toolbar or any other "permanent" objects.
colorDepth Accesses the maximum number of colors the user's screen can display. This is in bit format.
height Accesses ...

Get Pure JavaScript 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.