2

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?

theJian
  • 2,863
  • 2
  • 19
  • 36

0 Answers0