Chrome不支持showModalDialog方法 chromejavascriptshowModaldialogwebjs兼容 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我今天也发现这个问题,Uncaught TypeError: undefined is not a function 网上搜了半天都是说获取不到返回值的问题 我也遇到这问题了,换了个系统,装了新的chrome,以前的项目showModelDialog弹不出来了,Uncaught TypeError: undefined is not a function 谷歌发布Chrome 37浏览器 Chrome 37禁用对showModalDialog的默认支持。http://www.cfan.com.cn/2014/0827/110332.shtml Chrome 37+ 中 showModalDialog 被停用的临时解决方案http://tech.ddvip.com/2014-09/1409631962212990.html感觉还是用div构造自己的模拟窗口 if(navigator.userAgent.indexOf("Chrome") >0 ){ var winOption = "height="+height+",width="+width+",top=50,left=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,fullscreen=0"; return window.open(url,window, winOption); } else{ return window.showModalDialog(url, window, 'dialogHeight: ' + height + 'px; dialogWidth: ' + width + 'px;edge: Raised; center: Yes; help: Yes;scroll:no; resizable: no; status: no;resizable:yes'); } 判断下,假如是Chrome浏览器用open 打开就可以了。解决 你不要骗我 return window.open() jquery 遍历table每行并隐藏td 按浏览器的刷新和地址栏回车有什么区别? js如何实现这个效果 麻烦朋友进来看看 购物车,不弹出新窗口 在线等...问题解决,马上结贴 求:meizz老大的日历控件的原码? 【分享插件】大神,现在的分享插件,如何有办法检测到用户是否成功分享? 为什么我的embed里没有id属性... 求输入英文的正则式 请问,我该如何判断表中的字段值,是字符串还是整形,谢谢 散分,很奇怪的问题.... 用js写带有复选框的省份选择怎么写?
网上搜了半天都是说获取不到返回值的问题
Chrome 37禁用对showModalDialog的默认支持。
http://www.cfan.com.cn/2014/0827/110332.shtml
http://tech.ddvip.com/2014-09/1409631962212990.html
感觉还是用div构造自己的模拟窗口
var winOption = "height="+height+",width="+width+",top=50,left=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,fullscreen=0";
return window.open(url,window, winOption);
}
else{
return window.showModalDialog(url, window, 'dialogHeight: ' + height + 'px; dialogWidth: ' + width + 'px;edge: Raised; center: Yes; help: Yes;scroll:no; resizable: no; status: no;resizable:yes');
} 判断下,假如是Chrome浏览器用open 打开就可以了。解决