Javascript - Open a given URL in a new tab by clicking a button

前端 未结 13 461
一生所求
一生所求 2020-12-04 13:35

I would like to have a button that redirects to a given URL and opens in a new tab. How can this be done?

13条回答
  •  醉梦人生
    2020-12-04 14:31

    You can't. This behaviour is only available for plugins and can only be configured by the user.

提交回复
热议问题