+ -
当前位置:首页 → 问答吧 → showModalDialog 问题

showModalDialog 问题

时间:2011-11-11

来源:互联网

<script>window.returnValue = '1321003321.jpg';</script>

在ie 火狐下都可以,

但是在 谷歌下

var val = window.showModalDialog(url + '&time=' + new Date(),window,'dialogWidth:500px;status:no;dialogHeight:120px;center:yes;status=yes');
if(val != null){
document.getElementById(id).value = val;


这个val 就是空的

作者: cooc123   发布时间: 2011-11-11

默认打开的时候应该是可以的,你这是提交了一次之后导致不行的吧?你可以把这个放在iframe或者frameset里面去,然后window.parent.returnValue=xxx

作者: net_lover   发布时间: 2011-11-11