July 1998
Intermediate to advanced
1456 pages
65h 5m
English
pixelDepth — NN 4 IE n/a DOM n/a
Read-only
Returns the number of bits per pixel used to display color in the
video monitor. This value is similar to the
colorDepth property, but it is not influenced by a
potential custom color palette, as colorDepth is.
if (screen.pixelDepth > 8) {
document.all.pretty.color = "cornflowerblue"
} else {
document.all.pretty.color = "blue"
}Integer.
Current video control panel setting.
Read now
Unlock full access