×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

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


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

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 & DHTML

 
<< Go back