Open multiple links in Chrome at once as new tabs

前端 未结 7 1578
小蘑菇
小蘑菇 2020-11-29 09:32

I\'m trying to open multiple links at once in Google Chrome in new tabs but it fails.

Problems:

  1. Blocked by popup
  2. Open in new windows instead o
7条回答
  •  误落风尘
    2020-11-29 09:51

    The best way to open multiple tabs or windows is by using setTimeout() of 500ms.

    window.open("https://facebook.com", "one", windowFeatures);
    setTimeout(function(){
      window.open("https://facebook.com", "two", windowFeatures);
    }, 500);
    

提交回复
热议问题