为什么修改成windo.open();函数5秒后不能跳转???
<!DOCTYPE html><br>
<html><br>
<head><br>
<title>浏览器对象</title> <br>
<meta http-equiv="Content-Type" content="text/html; charset=gkb"/> <br>
</head><br>
<body><br>
<!--先编写好网页布局--><br>
<h2>操作成功</h2><br>
<div><br>
<a id="count"></a><br>
<a id="badk" href="#" onclick="back()">返回</a><br>
</div><br>
<br>
<script type="text/javascript"> <br>
<br>
//获取显示秒数的元素,通过定时器来更改秒数。<br>
var ele=document.getElementById("count");<br>
var count=5;<br>
var timer=setInterval(jump,1000);<br>
//通过window的location和history对象来控制网页的跳转。<br>
function jump()<br>
{<br>
ele.innerHTML=count+"秒后回到主页" ;<br>
count--; <br>
if(count==0)<br>
{<br>
window.location.href = "http://www.imooc.com/";<br>
<br>
clearInterval(timer);<br>
} <br>
}<br>
function back(){<br>
window.history.back(); <br>
}<br>
</script> <br>
</body><br>
</html><br>
为什么修改成windo.open();函数5秒后不能跳转???