javascript [removed] in new tab

前端 未结 7 690
失恋的感觉
失恋的感觉 2020-12-02 06:43

I am diverting user to some url through window.location but this url opens in the same tab in browser. I want it to be open in new tab. Can I do so with window.

7条回答
  •  爱一瞬间的悲伤
    2020-12-02 07:13

    I don't think there's a way to do this, unless you're writing a browser extension. You could try using window.open and hoping that the user has their browser set to open new windows in new tabs.

提交回复
热议问题