Fri, 17 May 2024


How to get information for the user screen's display and colors with JavaScript?

By: Nathalie, NetArt Media
Sun, 9 January 2022

In order to do this you need to use the screen object. This object has the following main properties:

availHeight
availLeft
availTop
availWidth
colorDepth
height
pixelDepth
width

For example screen.colorDepth returns the number of bits of the color palette used. If its value is 8, the color palette is 8 bit (256 c)


Category: Javascript
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox