JSFiddle - React, Tailwind, and code Playground

by AlienWebguy

HTML

<span id="create">Create iframe</span>

CSS

#create {
    color:blue;
    text-decoration:underline;
    cursor:pointer;
}

JavaScript

$('#create').click(function(){
    $('<iframe/>')
        .attr({
            id:"fiddleframe",
            src:"jsfiddle.net",
            width:"400",
            height:"400"})
        .appendTo('body')
        .load(function(){
            $(this)
                .contents()
                .find('.pageHeader')
                .css('border','3px solid red');
    });
});