打印机感叹号怎么解决:我是初学者,帮忙看一下代码错在哪(JavaScript)成功后加100分

来源:百度文库 编辑:高校问答 时间:2024/04/27 14:03:17
<html>
<head><title>Do by myself</title></head>
<% String user=request.getParameter("user") ;%>
<script language="javascript">
function getCheck()
{
if (user=request.form(user)=="123")
window.alert("Your password is correct!!!!");
else
window.alert("Your password is wrong!!!!");
}
</script>
<body>
<form method="get">
<h3>Type in your password</h3>
<input type="password" name="user"><br>
<input type="button" value="SURE" onclick="getCheck()">
</form>
</body>
</html>