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 );