Wednesday, April 4, 2012

[JavaScript] Determine Screen Resolution

Every wonder how to detect your computer's screen resolution? Using javascript, you can. Here's how:
<script>
  document.write('Screen Resolution: ' + 
    screen.width + " x " + screen.height);
</script>

Here's the sample result:

2 comments:

  1. More important is "working area" of screen resolution, I mean like presented here http://www.browserleaks.com/javascript

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...