View Full Version : resizing help

05-28-2005, 05:47 AM
Hi, I'm trying to dynamically resize a window's height based on the content, this it what I have, but it's not working.

var H=document.body.clientHeight;
window.resizeTo( 220 , H );

Mr J
05-28-2005, 11:45 AM
clientHeight is the window height so really you are setting it to what it already is.

scrollHeight is the height of the document so you want to try

var H=document.body.scrollHeight
window.resizeTo( 220 , H );

I have not tested this it is just a way of thinking