页面关闭-close

<html>

<head>
    <title>O_o&#@$%^*</title>
</head>

<body>
    <script language="javascript">
        function fnPageClose() {
            i = i - 1
            document.title = "页面" + i + "秒后关闭" + title;
            if (i > 0) setTimeout("fnPageClose();", 1000);
            else self.close();
        }
        var i = 10
        title = document.title;
        fnPageClose();
    </script>
</body>

</html>
发布了50 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_35689096/article/details/104064704