<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>标题栏闪烁</title>
<script type="text/javascript" >
var myTitle = document.title;
flag = false;
flash_title();
function flash_title(){
    if(flag){
        flag = false;
        document.title='【新消息】' + myTitle;
    }else{
        flag = true;
        document.title='【   】' + myTitle;
    }
    window.setTimeout('flash_title('+flag+')',500); 
}
</script>
</head>
<body>
    Hello World.
</body>
</html>