11111
<script language="VBScript">
Sub Submit_OnClick
Dim TheForm
Set TheForm = Document.ValidForm
If IsNumeric(TheForm.Text1.Value) Then
If TheForm.Text1.Value < 1 Or TheForm.Text1.Value > 10 Then MsgBox "请输入一个 1 到 10 之间的数字。"
Else
MsgBox "谢谢。"
End If
Else
MsgBox "请输入一个数字。"
End If
End Sub
</script>
</head>
<body>
<h3>验证</h3><hr>
<form name="ValidForm">
请输入一个 1 到 10 之间的数字:
<input name="text1" type="text" size="2">
<input name="submit" type="button" value="提交">
</form>
</body>
</html>
实训四(ASP内置对象的使用)任务书
【实训目的】
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库动态网页制作实训作业(8)在线全文阅读。
相关推荐: