Set content of iframe

I managed to do it with

var html_string= "content";
document.getElementById('output_iframe1').src = "https://stackoverflow.com/questions/8240101/data:text/html;charset=utf-8," + escape(html_string);

Leave a Comment