Javascript to open URL within a new Tab (instead of a window)

一笑奈何 提交于 2019-12-02 09:30:15

The obvious answer is to open the link with target="_blank". As you said, Firefox and Chrome will open a new tab.

Regarding IE - the behavior is up to browser preferences. By default (in IE7+ obviously) I believe the behavior is defined as open new tab. If the user decided the behavior should be a new window, there's only so much you can do about it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!