【发布时间】:2013-06-24 17:55:31
【问题描述】:
使用下面的代码,我可以在 Firefox 中打开新标签页以及 URL..但是当我尝试在 Chrome 中打开它的打开新窗口时,我不想要新窗口..I在 chrome 的情况下需要新标签
这是我的代码:
> window.open(this.getJavaURL +
((this.returnPage != null) ?
('&returnPage=' + this.returnPage) : '') +
((this.locale != null) ?
('&locale=' + this.locale) : '') +
((this.brand != null) ?
('&brand=' + this.brand) : ''),'_new');
你能帮帮我吗..
【问题讨论】:
-
可以使用“_newtab”代替“_new”
-
我试过了,但我仍然得到了新窗口..
-
这取决于浏览器设置,您可能无法更改:stackoverflow.com/a/4907854/1935077