JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<iframe id="fr" src="://www.w3schools.com" style="height:400px;width:400px;">
</iframe>
JavaScript
$(document).ready(function(){
$("#dialog").dialog({
autoOpen: true,
resizable: false,
modal: true,
width: 100,
height: 100,
position: ['center', 40],
close: function (event, ui) {
$('#dialog').attr('src', '');
var iframe = document.getElementById('fr');
iframe.src = iframe.src;//Reloads the Iframe
}
});
});