帮忙看一下这个问题。谢谢!
代码如下
<SCRIPT LANGUAGE="VBScript">
function Submit_OnClick()
Dim TheForm
Set TheForm = Document.form1
If IsNumeric(TheForm.CACULATE.Value) Then
If TheForm.caculate.Value < 0 Or TheForm.caculate.Value > 100 Then
MsgBox "请输入一个 1 到 100 之间的数字。"
else
theForm.submit
theform.action="do.asp?judge=1"
End If
Else
MsgBox "请输入一个数字。"
End If
End function
</script>
<form action="" method=post name=form1 onsubmit="Submit_OnClick()">
分数input name=caculate type=text maxlength=3>
<input name=submit type=submit value="提交">
</form>
运行的时候,错误信息是 对象不支持此属性"theForm.submit"