Hey I know this is an old post but I just had the same problem and
thought I would answer this just in case someone stumbles on it. Go to
-->
Solution
to get the complete answer (jakecigar - is the author of the answer)
Basically cannot assign a value to the div (ie
document.getElementbyID("Div0").innerHTML) but you can put a
span in the div then update the span
<div id="Div0"><span id="Span0">Banana</span></div>
To change Banana to Apple
document.getElementbyID("Span0").innerHTML = "Apple"
The resize on Div0 will continue to work