screen (JavaScript 1.2)

Provides information about the display screen and colors.

Properties & Events

KeyDescriptionAvailability
availheightAvailable height (in pixels) of the screen (not allocated to a shortcut bar or similar feature).
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
availwidthAvailable width (in pixels) of the screen (not allocated to a shortcut bar or similar feature).
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
colordepthDepth of the color palette for the screen.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
heightTotal height of the display screen.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
pixeldepthScreen color resolution (in bits-per-pixel).
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
widthTotal width of the display screen.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0

Examples having uses of: 'screen'

2 votes
1k views

JavaScript screen object

screen object gives your browser screen information like width,height,color depth.