JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://sasi.pro/searchsn/new/moopopup-yc.js"></script>
<link rel="stylesheet" href="http://sasi.pro/searchsn/new/moopopup.css">
<span class="button link">run javascript</span>
<div id="newiframe">
<iframe src="http://www.yr.no" id="newiframe" />
</div>
CSS
#newiframe {
display:none;
width:770px;
height:300px;
overflow:auto;
z-index:-1;
}
.moopopup-body #newiframe {
display:block;
}
JavaScript
var myIframe = document.id('newiframe');
function runExample3() {
var mypopup3 = new moopopup({
title: 'My home page',
resizable: false,
width: 800,
max_body_height: 600,
html_node: myIframe
});
mypopup3.display();
}
document.getElement('.button.link').addEvent('click', runExample3);
// window.addEvent('domready', function() { prettyPrint();});