Screen pixelDepth Property
Screen object
Definition and Usage
The pixelDepth property returns the color resolution of the display screen (bits per pixel).
Syntax
screen.pixelDepth
Browser support





Internet Explorer 10, Firefox, Opera, Chrome, and Safari browsers support the pixelDepth property.
**Note:** Internet Explorer 9 and earlier IE versions do not support the pixelDepth property.
Tip: colorDepth The property and the pixelDepth property do the same thing. Since all major browsers support colorDepth, that property is used instead. /p>
Example
Example
Return the color resolution of your screen:
The output of the above example is:
Try it »
More examples
This example contains all screen properties.
Screen object