English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Screen Object

The Screen object contains information about the user's screen.

It can be used to display the width, height, colorDepth (color depth), pixelDepth (color depth) of the screen, etc.

The Screen object isWindowPart of an object that can be written without a window prefix.

Screen Object Properties

The following table lists the properties of the Screen object:

PropertiesDescription
availHeightReturns the height of the screen (excluding the Windows taskbar)
availWidthReturns the width of the screen (excluding the Windows taskbar)
colorDepthReturns the color depth of the screen
heightReturns the total height of the screen (in pixels)
pixelDepthReturns the color depth of the screen
widthReturns the total width of the screen (in pixels)