【发布时间】:2018-10-03 07:36:20
【问题描述】:
我正在尝试解决 Internet Explorer 在打开 Intranet 网站时忽略函数 window.open() 的参数的问题。在 Internet 区域打开站点时,它可以正常工作。我不明白为什么这个功能在 Intranet 区域中不起作用。在内网区域不起作用的选项:“scrollbars=no,menubar=no,resizable=no,toolbar=no,location=no,status=no”
window.open('page.aspx?width=' + width + '&height=' + height, '', 'width=' + width + ',height=' + height + ',scrollbars=no,menubar=no,resizable=no,toolbar=no,location=no,status=no,fullscreen=no,top=' + top + ',left=' + left);
【问题讨论】:
-
请定义“无法正常工作”。您希望代码做什么,以及它会做什么?
-
明确一点:您对“Intranet 区域”的理解是什么? (我问这个是因为浏览器不关心那些“区域”)
-
此选项在内网区域中不起作用:"scrollbars=no,menubar=no,resizable=no,toolbar=no,location=no,status=no"。
-
在正常的安全设置下,这些选项在 Internet 区域中也不起作用。将该页面也添加到 Intranet 区域中的受信任站点。
-
很遗憾将站点添加到内网区域列表没有效果
标签: javascript internet-explorer window.open