Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Screen | Q539 [ previous next ]

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

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> 

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.