<input type=button value=close onclick="top.close()">

解决方案 »

  1.   

    你不说用的什么语言,c#?vb.net
      

  2.   

    什么是关掉父窗体?就是关闭自己所在的IE吗?这样自己也会被关闭哦!如果你是这样的意思:
    <script language="javascript">window.top.close();</script>
      

  3.   

    top.window.opener = null;
    top.window.close();使用 top 而不用 parent 因为不知道 frame 套多少层.