<!DOCTYPE html>
<html>
<body>
<p>Click the button to display the bit depth of the color palette.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = "Color Depth: " + screen.colorDepth + " bits per pixel";
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>