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?

Jian
  • 3,118
  • 2
  • 22
  • 36

0 Answers0