JSFiddle - React, Tailwind, and code Playground
JavaScript
var ifrm = document.createElement("iframe");
ifrm.src = "http://fiddle.jshell.net/blackkbot/GKnrg/4/";
ifrm.width = "1000px";
ifrm.height = "1000px";
document.body.appendChild(ifrm);
ifrm.id = "someId"; // optional id
ifrm.onload = function() {
ifrm.width = "1000px";
ifrm.height = "1000px";
}
setTimeout(function() {
$(ifrm).contents().find("body").html(content);
}, 1);
document.body.appendChild(ifrm);