回复: Opening Popup Window is not working in firefox and google chrome
嗨,我在上面的问题中有类似的代码。我的代码在 IE 中运行良好。
this.parent.window.showModalDialog('Counter.aspx', '',
'dialogHeight:170px;dialogWidth:150px;status:no;scroll:no;edge:sunken;toolbar:0;center:on;help:off;unadorned:yes;');
我该如何处理此代码才能在 Google Chrome 浏览器中打开此窗口?
感谢您的帮助
迈拉
最佳答案
showModalDialog 在 Chrome 中工作(尽管它不是真正的模式)。问题可能是它阻碍了他们。 Chrome 的简约设计有时甚至不会告诉您这一点。尝试为您当前的网站添加异常(exception)。
您可以在 - 下找到它
选项->底层选项卡->内容设置按钮->弹出窗口选项卡->异常(exception)按钮
关于javascript - 打开模式对话框窗口在 Chrome 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3635106/