JSFiddle - React, Tailwind, and code Playground

JavaScript

var form = document.createElement("form");

form.setAttribute("method", "post");
form.setAttribute("action", "http://www.yahoo.com");


function popitup(url) {
    newwindow = window.open(url, 'name', 'width=800,height=600');
    if (window.focus) {
        newwindow.focus()
    }
    newwindow.document.body.appendChild(form);
    newwindow.document.forms[0].submit();
    return false;
}

popitup();