View Full Version : problem getting clientHeight

07-25-2010, 05:44 AM
hey, im having an issue getting the screen size of my browser in IE, it works fine in firefox and safari using window.innerHeight but when i try to use document.body.clientHeight, it doesnt work, the width works, but height just gives me back a 0. any help? this is the code

var sHeight=document.body.clientHeight;

07-25-2010, 09:13 AM
It varies among browsers. This might help you


It has IE6 in the comments but they still apply to other IE versions.

07-25-2010, 11:48 PM
thank you, it works now!