var my_height = screen.height; var my_width = screen.width; document.write( my_width + " x " + my_height);