document.write()输出问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>浏览器对象</title>
</head onload="timecount()">
<body>
<h2>操作成功</h2>
<input type="button" value="返回" onclick="b_ack()" />
<script type="text/javascript">
var s_econd=5;
function timecount(){
if(s_econd==0){
window.location.assign("http://www.imooc.com/");
}
document.write(s_econd+"秒之后返回");
s_econd--;
setTimeout(timecount,1000);
}
function b_ack(){
window.history.back();
}
</script>
</body>
</html>
这里的document.write()为什么不起作用?使用document.write()输出内容有什么规则或者限制吗?