how to get size of screen html code example Example: get the size of the screen javascript window.screen.height; window.screen.width;