JSFiddle - React, Tailwind, and code Playground

by carsont

HTML

<button onclick="one()">one</button>
<button onclick="two()">two</button>
<div id="ham_one"></div>
<div id="ham_two"></div>

JavaScript

var onewindow = null,
    twotwindow = null;

function one() {
    onewindow = window.open("", "ASD", "menubar=no,location=no,resizable=yes, status=yes,width=500,height=500");
    console.log(onewindow);
}

function two() {
    twowindow = window.open("http://www.google.com", "ASD", "menubar=no,location=no,resizable=yes,status=yes,width=500,height=500");
    console.log(twowindow);
}