Answer the question
In order to leave comments, you need to log in
How to open a link in a new tab in Google Chrome?
It is necessary after processing the data to open a new tab in the browser.
In FF this code works correctly and opens a new tab, while in Chrome a new window opens. How to open a new tab in Chrome?
window.open(new_tab_link , '_blank')<br>
Answer the question
In order to leave comments, you need to log in
Crutches have not been canceled:
<form action='link' id='form' target='_blank'></form>
document.getElementById('form').submit();
This is an immutable behavior of the browser if you or another user is configured to do so.
For me, for example, all links of this kind open in a new tab, and not in a new window.
Any opening of a window not initiated by the user (click, keyboard) is considered an advertising popup and is blocked if the site is not trusted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question