js know size of screen

JavaScript
alert("Your screen resolution is: " + screen.width + "x" + screen.height)
Source

Also in JavaScript: