window.opener.close();
window.close();

解决方案 »

  1.   

    网页对话框
    是什么对话框
    alert?还是页面
      

  2.   

    showModalDialog..关闭对话框时 父窗也随之关闭
      

  3.   

    如果是点叉叉关闭的话,可能做不到吧,showModalDialog貌似也做不到吧
      

  4.   

    1.htm<script>     
    function clo()   

    window.returnValue=1;
    window.close();
    }   
    </script>
    <input type="button" onclick="clo();" value="close">2.htm
    <script> 
    if(window.showModalDialog('1.htm') == 1 ){window.close()}   
    </script>这样看看