showModalDialog()
得到的窗口是没有Opener的,
window.opener为空,
window.opener.top为非法

解决方案 »

  1.   

    请SilentClock(无声闹铃) 明示!谢谢!
      

  2.   

    正在研究,找到了答案再告诉你
    不过你可以试一下用window.open(xxx,xxx,xxx)
    这样的话window.opener就没问题
      

  3.   

    具体是这样的:
    B: window.showModalDialog("URLA",window,"otherArgs");//其中第二个参数传递了B的window信息A: Response.Write("
    <script language=javascript>
       if (window.dialogArguments && dialogArguments.location){
        dialogArguments.location.href = <%#YourURLHere%>;
        //window.close();
       }
    </script>
    ");