3 ms·
And this is fine in theory. I agree, as I think most other Javascript programmers do now. However, I have a challenge for you: calculate the browser window's w
by thaumaturgy 17y ago
And this is fine in theory. I agree, as I think most other Javascript programmers do now.
However, I have a challenge for you: calculate the browser window's width in pixels, before the page is done loading, and return the correct value without doing any browser sniffing.
Enjoy. :-)