JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

JavaScript

var b = document.createElement('button');
b.innerHTML = "click";
document.body.appendChild(b);
b.addEventListener('click',function(){
                var $winTwo = window.open('', 'connect', 'width=820,height=450');              
                //this.select('fbForm').submit();
                //var $document = $winTwo.document;
    $winTwo.addEventListener('message',function(e){e.source.postMessage('something',e.source.location.href);console.log(e.data)});
                $winTwo.postMessage("hello", location.href);                           
         });
addEventListener('message',function(e){console.error(e.data);});