JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="Try me!" id="input1" />
JavaScript
var popup;
$(document).ready(function()
{
popup = window.open("http://fiddle.jshell.net");
$("#input1").click(function() {
try {
popup.document.window.alert(1);
}
catch (e) { alert(e.message); }
});
}
);