showmodeldialog仅IE支持
1。向showmodeldialog传参数
C.HTM
<script>
 var a=[];
  a.push(0);a.push(1);a.push(2);a.push(3);
  var b={"a":"1","b":"2"};
</script>
<div ;>11111111</div>
<!--parent.document.pic.a.value-->
<input type=button value="open new showmodeldialog" onclick='var arr=window.showModalDialog("c1.htm",b, "dialogWidth:19em; dialogHeight:15em; status:1;help:1");' />
C1.HTM
<script>
alert(typeof(window.dialogArguments));
</script>
2。返回参数
window.returnValue =a.value+"*"+b.value+"*"+c.value+"*"+d.value+"*"+e.value;

相关文章:

  • 2021-07-31
  • 2022-02-05
  • 2022-12-23
  • 2022-01-23
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-08-08
  • 2021-09-23
相关资源
相似解决方案