<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>练习</title>
</head>
<body>
<form method="post" name="form1" onclick="check()">
<br>姓名:<input type="text" name="name" value=""></br>
<br>密码:<input type="password" name="password"></br>
<br>确认密码<input type="password" name="password2" ></br>
<input type="submit" name="button1" value="提交">
<input type="reset" name="button2" value="重置">
</form>
<script language="vbscript">
function check()
if form1.password.value=""
then alert ("请输入密码")
elseif form1.password2.value=""
then alert ("请输入确认密码")
else form1.password.value<>form1.password2.value
then alert ("确认密码与密码不一致!")
End function
</script>
</body>
</html>
请问哪里出错,输入数据后按提交没有反应