On Feb 8, 10:14 am, arman_leg...@hotmail.com wrote:
Does anyone know why this returns 0 in Firefox (2) and correct value
in IE (7)?
alert(document.body.clientHeight);
What makes you think IE is correct? Try the following with and
without a doctype. You may wish to discuss the results on
comp.infosystems.
www.authoring.stylesheets:
<URL:
http://groups.google.com/group/
comp.infosystems.
www.authoring.stylesheets/ >
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<title>clientHeight</title>
<style type="text/css">
body {margin: 0; padding: 0;}
</style>
<body onload="alert(document.body.clientHeight);"></body>
--
Rob