Help for this page

Select Code to Download


  1. or download this
      use strict;
      print "Enter your monitor's resolution?\n";
      chomp ($_ = <>);
      $_ = /^\s*(\d+)\s*x\s*(\d+)\s*/i or die;
      print "The resolution is $1 x $2\n";
    
  2. or download this
      <script language="JavaScript">
        var width = window.screen.availWidth
        var height = window.screen.availHeight
        alert(width + "*" + height)
      </script>
    
  3. or download this
       screen.width
       screen.height
       screen.availWidth
       screen.availHeight
       document.body.clientWidth
       document.body.clientHeight