I have a web app, where when you click on a button, a web page is sometimes (depending on other choices in the web page) generated. I want to be able to open the newly generated web page in a new tab in the browser, but it must be in the background (so the original page remains in focus).

How to do that?

Thanks in advance.