JSFiddle - React, Tailwind, and code Playground
HTML
<input id="click" value="click" type="submit" />
<br />
JavaScript
$('#click').on('click', function(){
var ifr=$('<iframe></iframe>', {
id:'MainPopupIframe',
src:'http://heera.it',
style:'display:none',
load:function(){
$(this).show();
alert('iframe loaded !');
}
});
$('body').append(ifr);
//when I click the home page button, nothing happen...
$('a').click(function(){
alert('click!!!');
})
});