You are here: irt.org | FAQ | JavaScript | Screen | Q539 [ previous next ]
Take a look at the article Controlling Images #2 - Browser and Screen Size.
The following was submitted by Shivaji Gadhave:
Just copy this code as html page and run on your browser by setting different resolution.
<html>
<head>
<script language="JavaScript">
function check() {
x = screen.width;
y = screen.height;
resol="Its "+ x +"X"+y+" resolution.";
alert(resol);
}
</script>
</head>
<body onload="check()">
Finding Screen Resolution...
</body>
</html>