用window.showModalDialog()
test1.htm
===================
<script>
var a = window.showModalDialog( "test2.htm ")
for(i=0;i <a.length;i++) alert(a[i])
</script>
test2.htm
===================
<script>
function sendTo()
{
var a=new Array( "a ", "b ")
window.returnValue = a
window.close()
}
</script>
<body>
<form>
<input value= "返回 " type=button οnclick= "sendTo() ">
</form>
window.open返回值
最新推荐文章于 2021-11-17 13:22:38 发布