关闭父窗口,打开新窗口

这个方法比较适合用在 安全退出 后又返回到login

<script type="text/javascript" language="javascript">       
         
function shutwin(){parent.window.close();
             window.open(
"index.aspx"); 
        }
 
        
</script> 
                
<<a href =""  onclick="shutwin()">退出</a>
原文地址:https://www.cnblogs.com/voidxy/p/971497.html