JSFiddle - React, Tailwind, and code Playground
by petermorlion
HTML
<input type="button" id="button" value="click"/>
JavaScript
$(function() {
$('#button').click(function() {
var theWindow = window.open('http://www.google.com', 'report');
setTimeout(function() {
theWindow.close();
}, 2000);
});
});