Screen:
*
Getting the screen resolution
To get the physical size of the screen (including window chrome and menubar/launcher):
var width = window.screen.width,
height = window.screen.height;