function sethtml(a,b)
{
document.getElementById("canvas_html_"+a).
innerHTML = "<iframe frameBorder="0" scrolling="no" width="200" height="40" name='innerFrame'></iframe>";
var objDoc = window.frames[ "innerFrame" ].document;
objDoc.write(b);
}
This just adds b to the iframe and the page just gets bigger and bigger.
b being a link to new HTML content.
EDIT: