Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Screen object


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


Screen object


Screen object

The Screen object contains information about the client display screen.

Screen object Note: There is no public standard applied to screen objects, but all browsers support them.


Screen object properties

Property Description
availHeight Return the height of the screen (excluding Windows taskbar)
availWidth Returns the width of the screen (excluding Windows taskbar)
colorDepth Returns the bit depth of the palette on the target device or buffer
height Returns the total height of the screen
pixelDepth Returns the color resolution of the screen (number of bits per cell)
width Returns the total width of the screen