P
P
Polina Emelyanova2019-02-05 09:53:03
JavaScript
Polina Emelyanova, 2019-02-05 09:53:03

How to open an additional inactive tab?

I have a question about how to bypass the prohibition of pop-ups in browsers
SUBJECT:
There is a task, by clicking on a link, to open not only its link in href, but also an additional inactive TAB with similar material from a partner blog.
TROUBLE
Browsers ban these windows like popups.
How can the issue be resolved?
Code example

onclick="setTimeout(function() {window.open('https://linka1/')}, 200);setTimeout(function() {window.open('linka2')}, 600);"

Thank you in advance for your help.
Thank you in advance for the sanity of the answers, because the Trolls will go to the ban.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question