JSFiddle - React, Tailwind, and code Playground
JavaScript
var popupTimeout = function() {
setTimeout(function() {
for (i = 0; i < 3; i++) {
var url = 'http://www.rediff.com';
var w = 550;
var h = 435;
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);
window.open(url, 'newwindow', 'width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
}
// Condition
popupTimeout();
}, 10000);
};
$(function() {
popupTimeout();
});