Java Reference
In-Depth Information
Screen Information
The window.screen object contains information about the screen that the browser is dis-
played on. You can find out the height and width of the screen in pixels using the height
and width properties respectively:
<< 1024
<< 1280
The availHeight and availWidth can be used to find the height and width of the
screen, excluding any operating system menus:
<< 1280
<< 995
The colorDepth property can be used to find the color bit depth of the user's monitor,
although there are few use cases for doing this other than collecting user statistics:
<< 24
Search WWH ::

Custom Search