JSFiddle - React, Tailwind, and code Playground
JavaScript
var iframe = document.createElement("iframe");
iframe.src = "http://www.google.com";
iframe.onload = function() {
alert("Content loaded, removing iframe...");
this.parentNode.removeChild(this);
};
document.body.appendChild(iframe);