JSFiddle - React, Tailwind, and code Playground
by Ranganadh Paramkusam
HTML
<!--
Parent window has variable iframe_sucks
-->
<span>This is iframe</span>
<br />
<iframe src="http://fortawesome.github.io/Font-Awesome/cheatsheet/" id="frame"></iframe>
<script>
var iframe_sucks = true;
onmessage = function(val){
var rs = val.data;
try{
rs = eval(val.data);
} catch(err) {
alert("Got error");
}
if(typeof(rs) == 'function'){
rs.call();
} else {
alert(rs);
}
}
function localFunction(){
alert("This is called from localFunction");
}
</script>