I have the following structure.
Hello World !!
I managed to do it with
var html_string= "content"; document.getElementById('output_iframe1').src = "data:text/html;charset=utf-8," + escape(html_string);