parent.hmtl 复代码 代码如下: <머리> 父窗구 <br><br>window.onload=function(){ <br>var btn=document.getElementById("btn"); <br>btn.onclick=function(){ <br>var obj={ <br>test:"张三传到子窗口", <br>win:window <br>}; <br>var returnValue = window.showModalDialog("child.html",obj,"dialogLeft:100px;dialogTop:100px;dialogWidth:400px;dialogHeight:300px;resizing:yes"); <br>if(returnValue != null){ <br>document.getElementById("content").innerHTML = returnValue; <br>} <br>}; <br>} <br> <본문>