|
-
September 20th, 2002, 12:21 AM
#1
How to use JSP or Javascript to get resolution rate?
Hi, everyone!
How to use JSP or Javascript to get resolution rate
(for example, 800*600, 1024*768, ... )?
Cheers,
George
-
September 20th, 2002, 03:20 AM
#2
JS :
Code:
<script type="text/javascript">
<!--
var iResWidth = screen.width;
var iResHeight = screen.height;
alert("Your resolution is : "+ screen.width +"x"+ screen.height +".");
// -->
</script>
Zvona - First aid for client-side web design
-
September 20th, 2002, 07:19 AM
#3
Thanks, your codes works nice!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|