A simple way to check the screen resolution of a visitor to a website is by the following JavaScript:
<script type="text/javascript">
document.write(screen.width+'x'+screen.height);
</script>
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:
<script type="text/javascript">
document.write('Width: '+screen.width+'<br>'+'Height: '+screen.height);
</script>
[ More Info ]