简体   繁体   English

即使使用toolbar = no,窗口也会随工具栏一起打开

[英]Window opens with toolbar even when using toolbar=no

I'm working on an app that uses this to open the homepage of the application after they have successfully entered the login details: 我正在开发一个应用程序,使用该应用程序可以在他们成功输入登录详细信息后打开应用程序的主页:

window.open("app_homepage_url","myApp","toolbar=no,status=yes,scrollbars=no,location=no,menubar=no,directories=no");

This normally works as expected and hides the toolbar but one user has reported that they still have the toolbar showing. 这通常可以正常工作并隐藏工具栏,但是一个用户报告说他们仍然显示工具栏。 They are using Internet Explorer. 他们正在使用Internet Explorer。

My first thought was maybe there's already a window open with the name 'myApp' and the toolbar shown so the homepage is getting loaded into that window instead of a new one but I tried doing that and the application does not let you log in due to the way the login is handled with sessions so I don't think it can be that. 我首先想到的可能是已经打开了一个名为“ myApp”的窗口,并且显示了工具栏,因此主页已加载到该窗口中,而不是新窗口中,但是我尝试这样做,并且由于以下原因,该应用程序不允许您登录会话处理登录的方式,所以我认为不可能是这样。

The comment on this answer seems to suggest there is a way to force the browser to always show the toolbar so I wonder if it is to do with this. 关于此答案的评论似乎表明,有一种方法可以强制浏览器始终显示工具栏,因此我想知道是否与此有关。 Does anyone know how you actually do this? 有人知道您实际上是如何做到的吗?

Any other ideas? 还有其他想法吗?

This might be a browser configuration issue. 这可能是浏览器配置问题。 Have a test on the following configuration settings on IE7 and IE8: 对IE7和IE8上的以下配置设置进行测试:

  1. Goto Tools->Internet Options->Security Tab 转到工具-> Internet选项->安全选项卡
  2. Select an appropriate security zone settings 选择适当的安全区域设置
  3. Click on Custom level.. button 单击自定义级别..按钮
  4. On the settings tab, look for Miscellaneous Node 在设置选项卡上,查找其他节点
  5. Then have a test on the following settings Allow script-initiated windows without size or position constraint All websites to open windows without address or status bar. 然后对以下设置进行测试:允许不受大小或位置限制的脚本启动的窗口所有网站都可以打开没有地址或状态栏的窗口。

Closing the browser might helpful when changing configuration settings. 更改配置设置时,关闭浏览器可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM