JavaScripture
Contribute via GitHub Feedback

Screen : Object

Provides details about the screen/monitor that the browser appears on.

Instance Properties

availHeight : Number  

Height in pixels available for applications on this screen. Excludes any areas reserved by the operating system such as the Windows task bar or Mac menu bar.

Example:

Run

Results:

 

availWidth : Number  

Width in pixels available for applications on this screen. Excludes any areas reserved by the operating system such as the Windows task bar or Mac menu bar.

Example:

Run

Results:

 

colorDepth : Number  

The number of bits used for color on the screen.

Example:

Run

Results:

 

height : Number  

Height of the screen in pixels.

Example:

Run

Results:

 

pixelDepth : Number

Same as colorDepth.

width : Number  

Width of the screen in pixels.

Example:

Run

Results: