javascript.无法在 safari 中打开新标签页 [英] javascript. Can't open new tab in safari
问题描述
以下 javascript 在 Firefox、chrome 和 IE 中打开一个新选项卡.但它会在 safari 中打开一个新窗口.
The following javascript opens a new tab fine in Firefox, chrome, and IE. but it opens a new window in safari.
javascript:window.open(url,'_blank'); // opens new window in safari.
我需要在 safari 中打开一个新标签而不是一个新窗口.还有其他人看到这种行为吗?修复?我似乎找不到任何最近的帖子来解决这个问题……也许只有我一个人.
I need to open a new tab NOT a new window in safari. anyone else seeing this behavior? fixes? I can't seem to find any recent posts that address this... maybe it's just me.
-谢谢.
在 Windows 上使用 safari 5.1.7.
Using safari 5.1.7 on windows.
推荐答案
原来是浏览器首选项,可以在 Edit -> 下编辑首选项 ->标签
,然后在下拉菜单在标签而不是窗口中打开页面
中选择Automatically
选项.
It turns out it's a browser preference, which can be edited under Edit -> Preferences -> Tabs
and select the Automatically
option in the drop-down menu Open pages in tabs instead of windows
.
这篇关于javascript.无法在 safari 中打开新标签页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!