DOM:window.screen.colorDepth
From MDC
Contents |
[edit] Summary
Returns the color depth of the screen.
[edit] Syntax
bitDepth = window.screen.colorDepth
[edit] Example
// check the color depth of the screen
if ( window.screen.colorDepth < 8) {
// use low-color version of page
} else {
// use regular, colorful page
}
[edit] Notes
See also window.screen.pixelDepth.
[edit] Specification
DOM Level 0. Not part of any standard.