简体   繁体   English

带有Chrome浏览器内嵌框架窗口的IE9。未解决的问题

[英]IE9 with Google Chrome Frame window.Open issue

I am using Google Chrome Frame (GCF) with IE9 and when I open a javascript dialog it opens in a tab instead of a dialog. 我正在将IE9与Google Chrome浏览器内嵌框架(GCF)一起使用,当我打开JavaScript对话框时,它将在选项卡中而不是对话框中打开。

My IE setting for 'Tabbed Browser Settings' -> 'When a pop-up is encountered:' -> 'Let Internet Explorer decide how pop-ups should open' 我的“标签式浏览器设置”的IE设置->“遇到弹出窗口时:”->“让Internet Explorer决定弹出窗口的打开方式”

I use this javascript to open a window: 我使用此JavaScript打开一个窗口:

window.open("http://google.com/", "_blank", 
    "location=0,status=no,toolbar=no,menubar=no,width=800,height=600,scrollbars=no,resizable=no");

If I change the IE setting to 'Always open pop-ups in a new window' it works. 如果我将IE设置更改为“始终在新窗口中打开弹出窗口”,则它可以工作。 The problem lies in that I need to change that setting on every IE9 computer in the company and the computer administrators are hesitant to do this. 问题在于,我需要在公司的每台IE9计算机上更改该设置,并且计算机管理员不愿意这样做。

According to Microsoft documentation if you specify a width/height it will open in a dialog but this is not the case when using GCF. 根据Microsoft文档,如果您指定宽度/高度,它将在对话框中打开,但是使用GCF并非如此。

Is there anything I can do (other than changing the setting) that will force the dialog to open in a new window instead of a tab? 有什么我能做的(除了更改设置之外),可以迫使对话框在新窗口而不是选项卡中打开?

Also IE is crafty it tells you it changes the setting but sometimes it actually doesn't so when testing close out of the browser all the way after changing the setting (I got all excited once after it 'worked' but it was actually the setting not updating in IE). IE也很狡猾,它告诉您它更改了设置,但有时实际上并没有这样做,当更改设置后完全关闭浏览器进行测试时(“工作”后我很兴奋,但这实际上是设置不会在IE中更新)。

You have to use the rel="noreferrer" in a standard link (no window.open). 您必须在标准链接(无window.open)中使用rel =“ noreferrer”。
I went through reams of documentation trying to figure this out. 我遍历了大量文档,试图弄清楚这一点。 Fortunately ChromeFrame isn't needed as much since IE11 seems to support most things (although IE11 has a horrible memory leak). 幸运的是,由于IE11似乎支持大多数功能,因此不需要太多ChromeFrame(尽管IE11内存泄漏非常严重)。

[a href="http://www.google.com" rel="noreferrer" target="_blank"]Rel No Referrer Is the Key[/a] [a href =“ http://www.google.com” rel =“ noreferrer” target =“ _ blank”]没有引用者是关键[/ a]

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

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