Opening multiple sites on the browser tabs with window.open

后端 未结 2 633
深忆病人
深忆病人 2021-01-27 22:07

I have the following code and need to open two new tabs pointing to 2 web sites. For example: www.google.com and www.yahoo.com

It works only if I put one site in there

2条回答
  •  温柔的废话
    2021-01-27 22:56

    I run your code. Both sites opened. But before it opens browser blocked popup window so i had to allow it to open. Try your code. And dont forget to allow popup after pressing button.

提交回复
热议问题