Screen object (Object/browser)

An object that represents the screen display and its rendering capabilities.

Availability:

JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
JavaScript syntax:-myScreen = myWindow.screen
-myScreen = screen
Object properties:availHeight, availLeft, availTop, availWidth, bufferDepth, colorDepth, fontSmoothingEnabled, height, pixelDepth, updateInterval, width

The properties of this object describe the physical attributes of the display screen the browser is currently operating in. The values reflected by users of desktop computers will describe a much higher resolution than a WebTV set-top box, for example. Other set-top boxes for use with TV should conform to the same resolution but it is likely that they will all vary slightly from one another.

Warnings:

See also:JellyScript, Window.screen

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
availHeight1.2 1.23.0 3.04.0 4.04.0 4.05.05.0 n/a n/a n/a n/a n/aReadOnly.
availLeft1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aReadOnly.
availTop1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aReadOnly.
availWidth1.2 1.23.0 3.04.0 4.04.0 4.05.05.0 n/a n/a n/a n/a n/aReadOnly.
bufferDepth n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
colorDepth1.2 1.23.0 3.04.0 4.04.0 4.05.05.0 n/a n/a n/a n/a n/aReadOnly.
fontSmoothingEnabled n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
height1.2 1.23.0 3.04.0 4.04.0 4.05.05.0 n/a n/a n/a n/a n/aReadOnly.
pixelDepth1.2 1.2 n/a4.0 4.0 n/a5.05.0 n/a n/a n/a n/a n/aReadOnly.
updateInterval n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
width1.2 1.23.0 3.04.0 4.04.0 4.05.05.0 n/a n/a n/a n/a n/aReadOnly.