JSFiddle - React, Tailwind, and code Playground

HTML

<button onclick="hi()"> Try me </button>

JavaScript

function hi() {
            var printOut = window.open("http://fiddle.jshell.net","_blank", 'height=200, width=200');
    console.log(printOut);
            setInterval(function() { 
                printOut.moveBy(10,10);    
         
            }, 2000)
}