Javascript window.open() function opens link without popup blocker

前端 未结 3 1232
离开以前
离开以前 2021-01-20 06:07

Javascript window.open() function opens link without popup blocker, I want to open some links from javascript window.open() function but it get blo

3条回答
  •  不要未来只要你来
    2021-01-20 06:50

    You can't force it to open a new tab. The functionality is controlled by the browser entirely.

    To avoid having your windows blocked, have the window open on any user event (like onclick).

提交回复
热议问题