由于“此计算机上存在限制”,Javascript window.open(..) 失败
对于特定用户(但不是管理员用户),对 window.open(...)
的 javascript 调用失败
错误消息是 由于对此操作的限制,此操作已被取消电脑。请与您的系统管理员联系。”
是域帐户,但我在域控制器上的 Active Directory 组策略设置中找不到失败的域帐户和管理员域帐户之间的任何差异。Google
该帐户 正在诊断的计算机上定义。
向我指出了一些讨论 HKCU\Software\Policies\Microsoft\Internet Explorer 注册表配置单元的帖子,但该配置单元似乎甚至没有在我 尝试切换/降低一些弹出阻止程序设置没有任何积极的结果。
关于我可能缺少的内容有什么好的建议吗?
编辑: window.ShowModelessDialog(..) 似乎可以正常工作,而 window.Open(..) 则不然。为了使用 window.open(..) 所以我想找到一种不同的方法来解决这个问题。
A javascript call to window.open(...)
fails for a particular user (but not for Administrator users)
The error message is This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator."
The account is a domain account, but I am not able to find any differences between the failing domain account and the administrator domain account in the Active Directory Group Policy settings on the domain controller.
Google pointed me towards some posts which talks about the HKCU\Software\Policies\Microsoft\Internet Explorer
registry hive but this hive doesn't even seem to be defined on the machine I'm diagnosing.
I've tried toggling/lowering some popup-blocker setting without any positive results.
Any good suggestion about what I may be missing?
EDIT: window.ShowModelessDialog(..) seems to work without errors while window.Open(..) doesn't. It would still be preferable for to use window.open(..) so I'd like to find a different way to resolve the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试启用互联网选项中的设置 --->安全选项卡搜索“允许网站打开没有地址或状态栏的窗口”。
这会有所帮助
Try enabling the setting in the internet options ---> Security tab search for "Allow websites to open windows without address or status bar".
this would help
我有这个问题。在我们的例子中,这是由于执行了以下组策略:
用户配置/管理模板/Windows 组件/Internet Explorer/浏览器菜单/禁用在新窗口中打开菜单选项
我知道这个策略会干扰 javascript 弹出似乎很奇怪ups,(它只是为了禁用 IE 上下文菜单中的“在新窗口中打开”菜单选项)但确实如此。
幸运的是,在我们的例子中,我们还使用了“禁用上下文菜单”策略,因此我们可以将上述策略重置为“未配置”(从而能够访问弹出窗口),而不会降低安全性。
I had this issue. In our case it was due to the following group policy being enforced:
User configuration/Administrative Templates/Windows Components/Internet Explorer/Browser Menus/Disable Open in New Window menu option
I know it seems strange that this policy would interfere with javascript pop-ups, (it's only meant to disable the Open in New Window menu option in IE's context menu) but it does.
Fortunately in our case we were also using the Disable Context Menu policy, so we could reset the above mentioned policy to Not Configured (and thus be able to access pop-ups) without reducing our security.