Open multiple tabs in the same browser by JavaScript

前端 未结 2 1661
礼貌的吻别
礼貌的吻别 2021-01-20 03:10

I would like to open multiple tab in the main browser: Here is my code:

    function openSM()
    {
        window.open(\"http://www.google.com\",\"_blank\")         


        
2条回答
  •  遥遥无期
    2021-01-20 03:47

    Unfortunately, you have no control over this so you will not be able to force a new tab to open programmatically. It's the browser that controls that feature, which can generally be configured by users.

    It could only be forced if you have control over the client's browser configuration and/or can install extensions in the client's browser (often the case in intranets)

提交回复
热议问题