代码求教,浏览器中效果无法实现
<!DOCTYPE html>
<html>
<head>
<title>浏览器对象</title>
<meta http-equiv="Content-Type" content="text/html; charset=gkb"/>
</head>
<body>
<h4>操作成功</h4>
<span><a id="miao">5</a>秒后回到主页<a href="wy">返回</a></span>
<script type="text/javascript">
var num=5;
function sj(){
num=num-1;
miao.innerHTML=num;
setTimeout(sj,1000);
while(num<1){
var wy=window.location.href;
window.history.go(wy);
}
}
setTimeout(sj,1000);
</script>
</body>
</html>