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