resolution of the screen 
Author Message
 resolution of the screen

How to know the resolution of the user agent screen with Jscript??

Thanks to all



Wed, 19 Mar 2003 03:00:00 GMT  
 resolution of the screen
Hi,
screen.width and screen.height.

David Baker



Wed, 19 Mar 2003 03:00:00 GMT  
 resolution of the screen
Isn't the width of the browser's client area more relevant?  I have a pretty
big monitor, and VERY RARELY surf with a maximized browser window.  The
following will work for the 4.0/5.0 crowd:

<script>
var w = "640"; // set default
if (document.all)
{
    w = document.body.clientWidth;

Quote:
}

if (document.layers)
{
    w = window.innerWidth;
Quote:
}

alert("Window width = " + w);
</script>

If you need to support 3.0's as well,
http://www.aspfaq.com/faq/faqShow.asp?fid=27 might help.

www.aspfaq.com


Quote:
> How to know the resolution of the user agent screen with Jscript??

> Thanks to all



Wed, 19 Mar 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to change the resolution of the screen in a script ?

2. How do I change Screen Resolutions?

3. How do I change Screen Resolutions?

4. Screen resolution checking

5. HELP need script to change screen resolution

6. Frameset Row Size dependent on Screen Resolution

7. Setting screen resolution...

8. How to can I get the screen resolution

9. User′s screen resolution

10. Getting Screen Resolution

11. screen resolution

12. resolution of screen

 

 
Powered by phpBB® Forum Software