<!DOCTYPE html>
<html>
<head>
<title>浏览器对象</title>
<meta http-equiv="Content-Type" content="text/html; charset=gkb"/>
</head>
<body>
<!--先编写好网页布局-->
<h1>操作成功</h1>
<span id="fanhui"></span><a></a>
<script type="text/javascript">
var time=5;
function count(){
document.getElementById("fanhui").value=time;
time=time-1;
setTimeout("count()",1000);
}
setTimeout("count()",1000);
//获取显示秒数的元素,通过定时器来更改秒数。
//通过window的location和history对象来控制网页的跳转。
</script>
</body>
</html>document.getElementById("fanhui").value=time; value 改为innerHTML
一般是表单用value