这个代码有错误吗?为什么提交后文本框为空白一直不动?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>计时器</title>
<script type="text/javascript">
var num=0;
function q()
{
document.getElementById("count").value=num;
num++;
setTimeout("q()",200);
}
q();
</script>
</head>
<body>
<form>
<input type="text" id="count"/>
</form>
</body>
</html>