Click to See Complete Forum and Search --> : How to use JSP or Javascript to get resolution rate?


George Ma
September 20th, 2002, 12:21 AM
Hi, everyone!

How to use JSP or Javascript to get resolution rate
(for example, 800*600, 1024*768, ... )?

Cheers,
George

Zvona
September 20th, 2002, 03:20 AM
JS :

<script type="text/javascript">
<!--
var iResWidth = screen.width;
var iResHeight = screen.height;

alert("Your resolution is : "+ screen.width +"x"+ screen.height +".");
// -->
</script>

George Ma
September 20th, 2002, 07:19 AM
Thanks, your codes works nice!