[thelist] Browser innerWidth for IE4/5/6?

Bruce Heerssen bheerssen at visualbridge.tv
Wed May 23 22:43:22 CDT 2001


Google is great for this sort of thing:
http://www.google.com/search?q=site:evolt%2Eorg+innerwidth

Gives this result:
http://lists.evolt.org/archive/Week-of-Mon-20001113/145309.html

Which points you at this very fine evolt article:
Real-World Browser Size Stats, Part I  (aardvark)
http://www.evolt.org/article/Real_World_Browser_Size_Stats_Part_I/17/2295/in
dex.html

This article covers the subject in some depth - happy reading.

-Bruce

Quackamoe wrote: (nice nick, btw :)

> Trying out some DHTML using Dan Steinman's Dynamic Duo
> tutorial (http://www.dansteinman.com/dynduo/).
<snip>
> I can get it for NN4x by using
>
>    if (ns4) redLight = window.innerWidth
>    // heh heh, redLight to stop the car; get it??
>
> but for IE5,
>
>    if (ie5) redLight =  document.body.offsetWidth
>    if (ie5) redLight =  document.body.scrollWidth
>
> don't work; window.innerWidth locks IE5 up, cuz
> it's NN only. Haven't looked at it in IE4,IE5.5, N6
> or Moz0.9 yet. I can do the last two, but only have
> IE5 installed.
>
<snip>





More information about the thelist mailing list