The results of the above code would be as shown below. The numbers represent the resolution in pixels.
Or if you prefer the values to be displayed on separate lines you could use the code below:
document.write('Width: '+screen.width+'<br>'+'Height: '+screen.height);
[ More Info ]