JSFiddle - React, Tailwind, and code Playground
JavaScript
(function()
{
var n, //undefined placeholder window.open paramaters
w = window.open(n,n,n), //first two values optional, specifying a third opens popup
d = 999, //dimentions of window
i = setInterval(function()
{
//decrease the size of the window
d -= 9;
w.resizeTo(d,d);
//close the window if it is as small as it can get
if(d <= 0)
{
clearInterval(i);
w.close();
}
}, 9)
;
})();