动态title

<html>
<head>
<meta charset="uft8">
<title>测试title</title>
</head>
<body>
<script type="text/javascript">
function flashTitle(){
var time=new Date();
var str=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds();
document.title="测试title"+str;
setTimeout("flashTitle()",1000);
}
flashTitle();
</script>
</body>
</html>

原文地址:https://www.cnblogs.com/liuwenbohhh/p/4597115.html