window.open -> window.opener
<frame> -> window.parent

解决方案 »

  1.   

    <input value=" OK " type="button" onclick="window.open('Child.html')" /> 其实想用window.showModalDialog('Child.html')的效果
    但是showModalDialog()里面好像不支持 window.opener 还有其他办法能达到showModalDialog()父窗口冻结的效果,
    而且是通过函数传参数么??拜谢!!!
      

  2.   

    parent.html:
    showModalDialog("Child.html",window/*传递参数*/,"");Child.html:
    window.dialogArguments就是传过来的参数window,也可以传document