| Availability: |
| ||||||
| 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.
Some documentation resources have referred to this object as a screen object rather than a Screen object. Note the capitalization. When examined, we found that several browsers spell the object with a capital S.
| See also: | JellyScript, Window.screen |
| Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| availHeight | 1.2 ![]() | 3.0 ![]() | 4.0 ![]() | 4.0 ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| availLeft | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| availTop | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| availWidth | 1.2 ![]() | 3.0 ![]() | 4.0 ![]() | 4.0 ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| bufferDepth | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| colorDepth | 1.2 ![]() | 3.0 ![]() | 4.0 ![]() | 4.0 ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| fontSmoothingEnabled | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| height | 1.2 ![]() | 3.0 ![]() | 4.0 ![]() | 4.0 ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| pixelDepth | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| updateInterval | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| width | 1.2 ![]() | 3.0 ![]() | 4.0 ![]() | 4.0 ![]() | 5.0![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| Prev | Home | Next |
| screen | Up | Screen.availHeight |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||