Answer the question
In order to leave comments, you need to log in
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);"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question