[Javascript] Window dimensions?

tedd tedd at sperling.com
Sat Jul 15 19:41:50 CDT 2006


>On 7/15/06, tedd <tedd at sperling.com> wrote:
>>John:
>>(...)
>>if (parseInt(navigator.appVersion)>3)
>>        {
>>        if (navigator.appName=="Netscape")
>>(...)
>
>   It would be good to point out that "navigator detection" is
>deprecated. You could use, instead:
>
>if (window.innerWidth) {
> winW=window.innerWidth;
> winH=window.innerHeight;
>} else if (document.body.offsetWidth) {
> winW=document.body.offsetWidth;
> winH=document.body.offsetHeight;
>}
>
> Amplexos.
>
>--
>diego nunes


Thx, we all can learn.

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list