我想使用登录密码创建一个网站。我使用了从互联网上获得的这种 html,但它变得很奇怪。你能修复html,这样我就可以在不打开其他选项卡链接的情况下单击登录吗?谢谢
<html>
<head>
<title>
LOG IN
</title>
</head>
<font size=5 style="font-family:Franklin Gothic Book; text-align="center">
Please log in
</font>
<form name="login">
<font face="Franklin Gothic Book">User name:<input type="text" name="userid"/><br>
Password <font color="white">.</font>:<input type="password" name="pswrd"/><br></font>
<input type="button" onclick="check(this.form)" value="Login"/>
<input type="reset" value="Cancel"/>
</form>
<script language="javascript">
function check(form)
{
if(form.userid.value == "Queen Crown" && form.pswrd.value == "rank1student")
{
window.open('one.html')
}
else
{
alert("Error Password or Username")
}
}
</script>
</body>
</html>