Force window.open() to create new tab in chrome

后端 未结 5 1842
轻奢々
轻奢々 2020-11-30 03:32

I use window.open to populate a new window with varying content. Mostly reports and stored HTML from automated processes.

I have noticed some very inconsistent beha

5条回答
  •  执笔经年
    2020-11-30 04:09

    window.open('page.html', '_newtab');
    

    Specify the '_newtab'. This works in IE and FF, and should work in Chrome. But if the user has things configured to not open in new tab then not much you can do.

提交回复
热议问题