JSFiddle - React, Tailwind, and code Playground
by ameen
HTML
<button id='click'>click me</button>
<iframe style="display:none" id='MainPopupIframe' src='' /></iframe>
JavaScript
$(function(){
$('#MainPopupIframe').load(function(){
$(this).show();
console.log('laod the iframe')
});
$('#click').on('click', function(){
$('#MainPopupIframe').attr('src', 'http://heera.it');
});
});