请问 为什么时间没有显示出来
<!DOCTYPE html>
<html>
<head>
<title>浏览器对象</title>
<meta http-equiv="Content-Type" content="text/html; charset=gkb"/>
</head>
<body onload="set()">
<h2>操作成功</h2>
<div id="time"></div>
<span>秒后回到主页</span>
<span onclick="window.history.back()" style="text-decoration:underline">返回</span>
<script type="text/javascript">
var t=5;
function set()
{
var x= setTimeout("set()",1000);
document.getElementById("time").innerHTML=x;
t--;
if(t==0)
{
window.history.back();
}
}
</script>
</body>
</html>