Lee wrote:
On Jun 3, 2:05 pm, Locke <jlo...@www.comwrote:
>> http://www.jibbering.com/faq/#FAQ4_9
Thanks, but none of those methods worked for me in IE 6.
The DOM method worked great in firefox and on my cell phone.
document.documentElement.clientHeight in firefox returns the height that
the content spans, not the height of the window :(
I need a solution that will work across all common browsers and
hopefully most cell phones. I assume at the moment this is not possible?
Thanks
document.body.clientHeight and document.body.clientWidth seems to work
fine on IE6, Firefox and Opera. Thats all I tested though.
In firefox, the error console gives the following message:
Error: document.body has no properties
Source File: file:///.../dim2.html
Line: 4
Source:
<html>
<script>
var winWidth = document.body.clientWidth;
var winHeight = document.body.clientHeight;
document.write(winWidth + " x " + winHeight);
</script>
</html>