- 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";
- or download this
<script language="JavaScript">
var width = window.screen.availWidth
var height = window.screen.availHeight
alert(width + "*" + height)
</script>
- or download this
screen.width
screen.height
screen.availWidth
screen.availHeight
document.body.clientWidth
document.body.clientHeight