Screen.pixelDepth : Screen Object « Screen « JavaScript Tutorial






The pixelDepth property gets the number of bits per pixel of the user's screen.

<html>
    <script language="JavaScript1.2">
    <!--
    document.write("The pixel depth of this user's screen is <b>");
    document.write(screen.pixelDepth + '</b> bit');
    -->
    </script>
</html>








18.1.Screen Object
18.1.1.screen
18.1.2.screen.availHeight
18.1.3.screen.availLeft
18.1.4.screen.availTop
18.1.5.screen.availWidth
18.1.6.screen.colorDepth
18.1.7.screen.height
18.1.8.Screen.pixelDepth
18.1.9.screen.width