JSFiddle - React, Tailwind, and code Playground

by rjurd

HTML

<iframe src='http://www.yahoo.com'></iframe>
<input type='button' value='go to google' />

JavaScript

function ReplaceMe() {
    $('document').html('<iframe src="http://www.google.com"></iframe>');
}
$('input').eq(0).click(function() {
    ReplaceMe();
});