请高手指点这段奇怪的VBScript代码。
hwyqy 2003-12-09 09:27:13 偶有一段Script代码,在Input里输入密码后按鼠标点确定能调用Script,但按回车键不能调用,偶找了很长时间也没找出原因,只能请各位大虾指点一下了。谢谢!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="75%" height="280" border="0" align="center">
<tr>
<td height="74" align="center" valign="top"><p><font color="#993300" size="+4">欢迎访问</font>
</p>
<p> </p>
<p> </p>
<form action="" method="post" name="myform" id="myform">
请输入访问密码:
<input name="pwd" type="password" id="pwd">
<input type="button" name="Submit" value="确 定" onclick="return check()">
</form></td>
</tr>
</table>
</body>
</html>
<Script Language=vbScript>
Function check()
alert("a")
End Function
</Script>