Screen.colorDepth (Property)

The number of bits available to resolve color values.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
Property/method value type:Number primitive
JavaScript syntax:-myScreen.colorDepth

To establish the number of available colours, raise the value 2 to the power of this value.

The technical description of this value is that it is the base-2 logarithm of the number of colours available.

You will likely get one of the following values:

Other values are possible but unlikely.

Property attributes: