<html>
<head>
<script language="vbscript">
sub tj_onclick()
bg.submit
dim a,b
a=request.querystring("text1")
b=isnumeric(a)
if b=1 then
if a>0 and a<51 then
alert"提交成功"
else
alert"请输入1到50之间的数字"
end if
else
alert"请输入数字!(不是字符!)"
end if
end sub
</script>
</head>
<body>
<h1>请输入1到50之间的数字</h1>
<br>
<form name="bg" method="get" action="">
<input type="text" name="text1" size="10">
<input type="button" value="提交" name="tj">
</form>
</body>
</html>
![](http://imgsrc.baidu.com/forum/w%3D580/sign=84bc86a3d0160924dc25a213e406359b/f1108618367adab478acfab68bd4b31c8601e4d4.jpg)
点了提交就是不出提示,找不着哪里出问题了,,菜鸟求大神指点~~![](http://static.tieba.baidu.com/tb/editor/images/face/i_f32.gif)
<head>
<script language="vbscript">
sub tj_onclick()
bg.submit
dim a,b
a=request.querystring("text1")
b=isnumeric(a)
if b=1 then
if a>0 and a<51 then
alert"提交成功"
else
alert"请输入1到50之间的数字"
end if
else
alert"请输入数字!(不是字符!)"
end if
end sub
</script>
</head>
<body>
<h1>请输入1到50之间的数字</h1>
<br>
<form name="bg" method="get" action="">
<input type="text" name="text1" size="10">
<input type="button" value="提交" name="tj">
</form>
</body>
</html>
![](http://imgsrc.baidu.com/forum/w%3D580/sign=84bc86a3d0160924dc25a213e406359b/f1108618367adab478acfab68bd4b31c8601e4d4.jpg)
点了提交就是不出提示,找不着哪里出问题了,,菜鸟求大神指点~~
![](http://static.tieba.baidu.com/tb/editor/images/face/i_f32.gif)