Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q539 Is there any way to tell what resolution a user is using?

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> 

©2018 Martin Webb