Programmatically open a new tab in ie7

我的梦境 提交于 2019-12-04 10:22:30

Unfortunately there is no way to control whether the window opens in a new tab or new window. This is a user setting that can't be overridden in code.

Here is Microsoft's justification if you're interested.

"Regarding script, there is no "target='_tab'" feature or any direct access to tabs from script beyond what is available with multiple windows today. We are working on balancing the default behavior for whether a window opened from script opens as in a new frame or a tab."

You could inform your user that by holding ctrl+shift and clicking a link will open in a new tab.

As Paul already noted, this cannot be done via any script or code.

I think it's best to let your users decide (via their individual browser settings) how they want to open the new page - in a new window or in a new tab in the same window.

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