A JS function to handle the page title of title flashing effect
- 2020-03-30 02:58:23
- OfStack
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Headless document </title>
</head>
<body>
<script language="JavaScript">
step=0
function flash_title()
{
step++
if (step==3) {step=1}
if (step==1) {document.title=' [you have new information] '}
if (step==2) {document.title=' 【 】 '}
setTimeout("flash_title()",380);
}
flash_title()
</script>
aaaaaaddaaaaaa
</body>
</html>