--------a.html-----------
<script>
var newwin=window.open("../help/help.html");
</script>
<input type=button value="close new window" onclick="newwin.close();">
//关闭新开窗口
---------end--------------------再新窗口中关闭用如下--------top.window.close();---------end---------------------

解决方案 »

  1.   

    var m_objWindow = window.open("xx.htm");
    m_objWindow 为一全局变量,然后在需要的地方用:
    m_objWindow .close();
      

  2.   

    楼上的:
    m_objWindow 这种命名方式是在JS中定义全局变量的方式还是你的习惯?
    请教多谢!
      

  3.   

    在新打开的窗口中关闭此窗口本身top.window.close();
      

  4.   

    一般的方法会出现提示,下面的办法就可以的避免:
    <input type=button onclick="location.replace('newFrame.htm')" value=打开多帧>