अवलोकन
screen.pixelDepth प्रॉपर्टी स्क्रीन की रंग गहराई (बिट्स प्रति पिक्सल) लौटाती है।
उदाहरण
<!DOCTYPE html> <html> <body> <script> document.write("Screen width: " + screen.width); document.write("<br>Screen height: " + screen.height); document.write("<br>Pixel Depth: " + screen.pixelDepth); </script> </body> </html>