JSFiddle - React, Tailwind, and code Playground
by amenadiel
HTML
<a href="#" id="testing">Open a popup window</a>
<div id="msg">
</div>
JavaScript
var w;
jQuery('#testing').click(function() {
w = window.open('', "", "width=600, height=400, scrollbars=yes");
$(w.document.body)
.append('<a id="linkinterior" href="#prueba">click para probar</a>')
.click(function(event) {
$('#msg').text('se detecta click hacia: ' + $(event.target).attr('href'));
});
});