Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

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.

<script language="JavaScript">
function check() {
  x = screen.width;
  y = screen.height;
  resol="Its "+ x +"X"+y+" resolution.";
<body onload="check()">
Finding Screen Resolution...

©2018 Martin Webb