Screen pixelDepth property
Definition and Usage
pixelDepth property returns the color resolution of the display screen (bits per pixel).
grammar
screen.pixelDepth
Browser Support
Internet Explorer 10, Firefox, Opera, Chrome, and Safari browser support pixelDepth property.
Note: Internet Explorer 9 and earlier versions of IE browser does not support pixelDepth property.
Tip: colorDepth attributes and attribute pixelDepth accomplish the same thing.Since all major browsers support colorDepth, so use that property. / P>
Examples
Examples
Returns the color resolution of your screen:
<Script>
document.write ( "Color Resolution:" + screen.pixelDepth);
</ Script>
document.write ( "Color Resolution:" + screen.pixelDepth);
</ Script>
Examples of the above output:
try it"
More examples
This example contains all screen attributes.
Screen objects