M
Martin Rinehart
I've checked the following page on Konqi and Opera, KDE, and MSIE6, 7,
and recent FF, Chrome, Opera and Safari, Windows. It replaces the
absurdly complex FAQ 9.3 ( http://www.jibbering.com/faq/#getWindowSize
).
-------------------------------------
<html> <body>
<button onclick='alert( clientSize() )'> How big am I? </button>
<script>
function clientSize() {
var d = document, dB = d.body;
return [ dB.clientWidth,
d.clientHeight ? Math.max(d.clientHeight, dB.clientHeight) :
dB.clientHeight ]
}
</script>
</body> </html>
and recent FF, Chrome, Opera and Safari, Windows. It replaces the
absurdly complex FAQ 9.3 ( http://www.jibbering.com/faq/#getWindowSize
).
-------------------------------------
<html> <body>
<button onclick='alert( clientSize() )'> How big am I? </button>
<script>
function clientSize() {
var d = document, dB = d.body;
return [ dB.clientWidth,
d.clientHeight ? Math.max(d.clientHeight, dB.clientHeight) :
dB.clientHeight ]
}
</script>
</body> </html>