退出系统的JS代码

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script language ="javascript">
    function aa()
    {
        window.opener = null;
        window.open('', '_self'); //关键的一步
        window.parent.parent.close();
    }
    </script>
</head>
<body onload="aa()">
    <form id="form1" runat="server">
    <div>
   
    </div>
    </form>
</body>
</html>

posted on 2011-03-11 16:00  MyBeN  阅读(260)  评论(0编辑  收藏  举报

导航