页面一的代码javascript
1.html
<script>
newwindow=window.open(url,"param")
function checknewwindow()
{}
</script>

解决方案 »

  1.   

    好玩,居然跑出了爷爷窗口opener.opener.opner可就是太爷爷了哦
      

  2.   

    上面的按错了
    1.html
    <script>
    function opennewwindow()
    {
        newwindow=window.open(url,"param")
    }
    function checknewwindow()
    {
        if(newwindow.closed)
        {
           window.location="url"
         }
        else
        {
           setTimeout("checknewwindow()",1000)
         }
    }
    </script>
    这只是其中一种实现方式
      

  3.   

    1.htm<body>
    <INPUT id="Text1" type="text" name="Text1"> 
    <INPUT id="Button1" type="button" value="打开2.htm" name="Button1" onclick='window.open("2.htm")'>
    </body>2.htm
    <body>
     
    <INPUT id="Button1" type="button" value="打开3.htm" name="Button1" onclick='window.open("3.htm")'> 
    </body>3.htm
    <body  >
    <INPUT id="Button1" onclick="window.close();opener.opener.location.reload()" type="button" value="关闭并刷新1.htm" name="Button1">
    </body>