Chrome&弹出窗口名称 [英] Chrome & PopUp window names

查看:133
本文介绍了Chrome&弹出窗口名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  RING = window.open( path,'RING_Projekt','width = 800,height = 600,scrollbars = no,top ='+ t +',left ='+ l +''); 

在弹出窗口中打开的HTML文件是有效的HTML文件,其中包含< title> ; ,但Chrome浏览器(所有其他浏览器都能正常工作)将在标题栏中显示无标题。

有人知道这是为什么发生,如果有一个错误/解决方法可以解决这个问题?或者,这是一种弹出式窗口拦截器故障/错误?

谢谢!



编辑:游玩时,我注意到以下内容(不幸的是,它让我感到困惑......):带有Flash内容的页面打开另一个弹出窗口(显示新闻):

  var NEWS = window.open('popup / news.htm','RING_news','width = 400,height = 400,scrollbars = no,top = 20,left = 20'); 

当我现在打开一个弹出窗口,并在上面的文章中提到的功能时,然后关闭新闻 - 加载时打开,然后切换回点击 - 弹出对话框,神奇地获得了一个名字。当你关闭它并再次打开时,名字再次消失。
说实话:我不明白。我应该可以有多个弹出窗口,对吧?此外,我看不到任何命名问题或其他任何可以解释此行为的问题。



我在这里错过了一些大事吗?或者,这是一个普通的错误?

解决方案

好吧,我确定这是一个Chrome浏览器bug,所以我会回答这个问题。

Chrome似乎正确地从HTML中读取指定的标题(因为它将显示在任务栏中),但似乎在必须在弹出的栏中显示名称(请参见下面的截图)。当你开始弹出(移动/调整大小)时,标题有时会出现并消失。然而,任务栏中的名称总是正确的(加上它在其他所有浏览器中都能正常工作的事实让我觉得它是一个错误)。



我是在Windows Vista上运行Chrome 14.0.835.186 m。




I am opening pop up windows from a website (flash content) the following way:

RING = window.open(path,'RING_Projekt','width=800,height=600,scrollbars=no,top=' + t + ',left=' + l +'');

The HTML file opened in the popup is valid HTML with a <title>, yet Chrome (all other browsers do work fine) will display "Untitled" in the title bar.

Does anyone know why this is happening and if there is an error / workaround that could fix this? Or is this some kind of a pop up blocker malfunction / bug?

Thanks!

EDIT: Playing around, I noticed the following (unfortunately it ADDS to my confusion...): the page with the flash content opens another popup (displaying news) on load by doing:

var NEWS = window.open('popup/news.htm','RING_news','width=400,height=400,scrollbars=no,top=20, left=20');

When I now open a popup with the function mentioned in the above post, then go and close the news-Popup opened on load and then switch back to the "on-click"-Popup the popup magically acquired a name. When you close this and open it again, the name is gone again. To be honest: I don't get it. I should be able to have more than one pop-up, right? Also, I cannot see any naming problems or anything else that could explain this behavior.

Am I missing something big here? Or is this a plain bug?

解决方案

Ok, I am a 99.99% sure this is a Chrome bug, so I'll answer this myself.

Chrome seems to read the specified title correctly from the HTML (as it will be displayed in the task bar), but seems to have problems when having to display the name in the bar on the popup (see screenshot below). When you start to fiddle with the popup (move / resize), the title will sometimes appear and disappear again. Yet, the names in the task bar will always be right (that plus the fact that it works in every other browser lets me think it is a bug).

I am running Chrome 14.0.835.186 m on Windows Vista.

这篇关于Chrome&amp;弹出窗口名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆