Niall O Broin's [niall at magicgoeshere.com] 22 lines of dribble included:
:>Hi,
:> I use the javascript window properties innerWidth and innerHeight to
:>determine how much content to show to a user. This works with Navigator 4
:>but not with IE 4. There, I use screen.availWidth and screen.availHeight but
:>that's not a great solution for someone who doesn't have their browser
:>window maximised.
:>:>It's like a dream to me that I saw mentioned somewhere that this can be done
:>in IE5, although not quite as simply. Do any of you know if this is the case
:>or not ? If so, how do I do it ?
IE4 way is,
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
Phil.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!