I know how to do a window resize, and how to change innerHTML, my program is that if i resize the window to the offSetHeight of a div after setting its innerHTML, it always detects what the size of the div was before i added HTML to it. How can i set the height of a window to the height of its connent, even using innerHTML?

THanks.