I use this code to open 2 sites in new tabs in browser
$("#mylink").on('click', '#one', function () {
window.open('registration.php', '_blank');
window.open('readme.php', '_blank');
but when I click on link, second link has bet blocked as popup. How to open 2 sites contemporaneously?
P.S. If this is not possible, how open second link in current browser tab?
答案 0 :(得分:0)
Unfortunately it's not possible to "unblock" it as a popup, as far as I know. It would be easier to just give 2 links.
答案 1 :(得分:-1)
You can use _self
as parameter to open in the same window. i.e.
$("#mylink").on('click', '#one', function () {
window.open('registration.php', '_blank');
window.open('readme.php', '_self');
}