Open new window without focus on it [duplicate]

What you seek is called a “pop-under” window

Example:

var handle = window.open('https://stackoverflow.com/');
handle.blur();
window.focus();

However, it’s not a guarantee as user browser settings may override this behavior, especially pop-up blockers.

Leave a Comment