I need to use JavaScript and the DOM to determine the available amount of
browser space - the total size of the browser window minus whatever space is
used by chrome.
window.innerHei ght and window.innerWid th seem to work fine in Opera 8 and
Firefox 1.5. In IE, I've read that you need to use document.body.c lientHeight
and .clientWidth but that seems to only give you the dimensions of the box
created by your <body> tag.
Whatever solution I end up using needs to work in IE. I'm assuming the
window.innerHei ght/innerWidth deal will work in Konqueror and Safari; please
correct me if I'm wrong about that.
I am looking at coding for FireFox 1.5+, IE 6+, Opera 8+, and whatever the
latest versions are of Safari and Konqueror.
Thanks in advance -
SJS
--
Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
Apple Valley, CA
Resident of Southern California -
the home of beautiful people and butt-ugly traffic jams
browser space - the total size of the browser window minus whatever space is
used by chrome.
window.innerHei ght and window.innerWid th seem to work fine in Opera 8 and
Firefox 1.5. In IE, I've read that you need to use document.body.c lientHeight
and .clientWidth but that seems to only give you the dimensions of the box
created by your <body> tag.
Whatever solution I end up using needs to work in IE. I'm assuming the
window.innerHei ght/innerWidth deal will work in Konqueror and Safari; please
correct me if I'm wrong about that.
I am looking at coding for FireFox 1.5+, IE 6+, Opera 8+, and whatever the
latest versions are of Safari and Konqueror.
Thanks in advance -
SJS
--
Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
Apple Valley, CA
Resident of Southern California -
the home of beautiful people and butt-ugly traffic jams
Comment