JavaScript Screen Object

JavaScript Screen Object

Screen Object

The Screen object is automatically created by the JavaScript runtime engine and it contains information about the client’s display screen. Its properties are described below:

NN: Netscape, IE: Internet ExplorerProperties

Syntax: screen.property_name

Property Description NN IE 
availHeight The height of the display screen – excluding the Taskbar 4 4
availWidth The width of the display screen – excluding the Taskbar 4 4
colorDepth The bit depth of the color palette in use. If no color palette is in use it reflects the pixelDepth property 4 4
height The height of the display screen 4 4
pixelDepth The color resolution (in bits per pixel) of the display screen 4  
width The width of the display screen 4 4

Leave a Reply

Your email address will not be published. Required fields are marked *