I've tested on various browsers executing code snippet below and they have all get blocked by default.
setTimeout(() => window.open('https://google.com'), 1001);
But if the delay is <= 1000
it can successfully open a new tab/window.
Why?
I've tested on various browsers executing code snippet below and they have all get blocked by default.
setTimeout(() => window.open('https://google.com'), 1001);
But if the delay is <= 1000
it can successfully open a new tab/window.
Why?