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);
More Related Contents:
- Get DOM content of cross-domain iframe [duplicate]
- Reload an iframe with jQuery
- How to clear the contents of an iFrame from another iFrame
- How can I detect whether an iframe is loaded?
- Attach an event in a child iframe to a handler in the parent window
- putting html inside an iframe (using javascript)
- Detect click event inside iframe
- how to block website from loading in iframe?
- Change iframe src by clicking a link
- how to resolve iframe cross domain issue [duplicate]
- Iframe.readyState does not work in chrome
- How to detect a click inside of an iframe (cross-domain)? Aka prevent click fraud
- Insert content into iFrame
- Trigger a button click inside an iframe [duplicate]
- get parent.location.url – iframe – from child to parent
- iframe Auto Adjust Height as content changes
- Iframe inherit from parent
- Change from (+) symbol to (-) after click (function(){
- How can i create html automatic change page? [duplicate]
- How do I check whether a checkbox is checked in jQuery?
- Detecting input change in jQuery?
- How to go to a specific element on page? [duplicate]
- HTML5 Canvas toDataURL returns blank
- Programmatically trigger “select file” dialog box
- CSS3-Animate elements if visible in viewport (Page Scroll)
- How can I use JSON data to populate the options of a select box?
- How to create a responsive image that also scales up in Bootstrap 3
- How to focus on a form input text field on page load using jQuery?
- How do I make a move up and down when I’m scrolling the page?
- Trigger for span text/html on changed