1.htm
---
<html>
<a href="#" onclick="window.showModalDialog('2.htm');location.reload();">2.htm</a>
</html>
2.htm
---
<html>
<a href="#" onclick="if (window.showModalDialog('3.htm')!=null) window.close();">3.htm</a>
</html>3.htm
---
<html>
<input type=button onclick="window.returnValue=1;window.close();" value=OK >
<input type=button onclick="window.close();" value=Cancel >
</html>

解决方案 »

  1.   

    按 JK_10000(JK) 做。有这个问题:两窗口,a开的b,在b中,我想往a中网页的一固定区域写内容(如table中),怎么办?
      

  2.   

    也可以这样做
    1.html
    <html>
    <script type="text/javascript">
    function editit()

      page="2.html"
      window.open (page,'11','width=560,height=360')
    }
    </script>
    <a href="#" onclick="editit();">2.htm</a>
    </html>2.html<html>
    <form action="3.html">
    <input type="submit">
    </form>
    </html>3.html<html>
    <a href="#" onclick="window.opener.location.reload(true);window.close();">close</a>
    </html>