On a modal, To redirect on a new tab I have a redirection timer and a continue button to redirect on click.
When timer gets completed I have targeted the continue btn to Hit and open new tab. On click continue btn, redirection to new tab is happening but on timer completion, redirection is blocked by "pop-up block".
var countDown = function () {
var modaltimer = countdownContainer.find(".timer");
countdownContainer.removeClass('dn');
/* istanbul ignore else */
if (timer > 0) {
timer--;
modaltimer.html("00:" + (timer > 9 ? timer : ("0" + timer)));
timeOut = setTimeout(countDown, 1000);
}
else {
$(modalContainer).find('.deepLink-Content a[class*="submit"]')[0].click();
}
};
What possible solution can I use to bypass popup blocker ??enter code here