Get color depth
Simple example of getting the color depth of the screen.
<!DOCTYPE html>
<html>
<body>
<div id="content"></div>
<script>
document.getElementById("content").innerHTML =
"The color depth of the screen is " + screen.colorDepth;
</script>
</body>
</html>