一直刷新页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        window.onload = function () {
            var img = document.getElementById("checkCode");
            img.onclick=function () {
                var date=new Date().getTime();
                img.src="www.baidu.com?"+date;
            }
            var t=document.getElementById("change");
            t.onclick=location.reload()
        }
    </script>
</head>
<body>
<img id="checkCode" src="www.baidu.com" alt="">
<a id="change"href='javascript:void(0)'>哈哈哈</a>
</body>
</html>

 

posted @ 2020-03-07 23:22  风萧萧路漫漫  阅读(148)  评论(0编辑  收藏  举报
// 改变博客标题
浏览器标题切换
浏览器标题切换end