You can use the Screen object to get this.
The following is an example of what it would return:
To get your
screenWidth variable, just use
screen.width, same with
screenHeight, you would just use
To get your window width and height, it would be
pageY variables, use
window.screenX or Y. Note that this is from the VERY LEFT/TOP OF YOUR LEFT/TOP-est SCREEN. So if you have two screens of width
1920 then a window 500px from the left of the right screen would have an X value of
screen.width/height, however, display the CURRENT screen's width or height.
To get the width and height of your page, use jQuery's
Again using jQuery, use
$("html").offset().left for your