get the size of the screen javascript

JavaScript
window.screen.height;
window.screen.width;
Source

Also in JavaScript: