【发布时间】:2012-11-30 06:43:07
【问题描述】:
我在 jQuery 中使用 window.open 进行点击事件。
问题是我想禁用位置栏,它在 Safari 中有效,但在 Chrome 中无效。
我在某处听说 Chrome 中的地址栏无法摆脱,这是真的吗?
代码如下:
var features = "left=200,toolbar=0,resizable=0,scrollbars=0,location=0,menubar=0,status=0,width=510,height=547";
window.open(URL, NAME, features);
【问题讨论】:
-
您可能知道,有众所周知的 location=no、addressbar=no 等,但并非所有浏览器都遵循这一点。其中一些是出于安全原因。
标签: javascript jquery google-chrome dom window.open