I want to use two popup ads on my site, how do I open them one at a time when I refresh the page, I tried, but opens two pop-ups at the same time annoying any visitor, I tried the following script. >
(function () {
var isOpened = false;
var siteUrl = "http://popup1";
var siteUrl = "http://popup2";
document.addEventListener("click", function(){
if (!isOpened) {
isOpened = !!window.open(siteUrl, "_blank");
}
});
})();