Looking for javascript Answers? Try Ask4KnowledgeBase
Looking for javascript Keywords? Try Ask4Keywords

JavaScript Getting the screen resolution


Example

To get the physical size of the screen (including window chrome and menubar/launcher):

var width  = window.screen.width,
    height = window.screen.height;