Latest web development tutorials

Screen objects

Screen objects

Screen object contains information about the client display screen.

NoteNote: There isno standard screen objects used in public, but all browsers support the object.


Screen object properties

Attributes Explanation
availHeight Return to the screen height (not including the Windows taskbar)
availWidth Returns the width of the screen (not including the Windows taskbar)
colorDepth Returns the bit depth of the target device or a palette buffers on
height Returns the total height of the screen
pixelDepth Return to the screen color resolution (bits per pixel)
width Returns the total width of the screen