August 1999
Intermediate to advanced
1488 pages
72h 53m
English
screen.pixelDepth
The pixelDepth property of the screen object accesses the number of bits per pixel of the user's screen.
Listing 7.461 displays the pixel depth of the user's screen to the page.
<script language="JavaScript1.2">
<!-- Hide
document.write("The pixel depth of this user's screen is <b>");
document.write(screen.pixelDepth + '</b> bit');
// End hide --->
</script>
|
Read now
Unlock full access