Enter virker ik
Hvorfor virker Enter ik når man står i password feltet??<html>
<head>
<title>Login</title>
<script language=\"JavaScript\">
<!-- Made by ME -->
<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username==\"admin\" && password==\"2000\") { window.location=\"admin.html\"; done=1; }
if (username==\"bruger\" && password==\"test\") { window.location=\"test.html\"; done=1; }
if (done==0) { alert(\"Invalid login!\"); }
}
// End -->
</script>
<link rel=\"stylesheet\" href=\"../html/font.css\">
</head>
<body background=\"../images/overall/bg.gif\">
<form name=login>
<img src=\"../images/overall/1x1.gif\" width=\"20\" height=\"20\">
<table width=271>
<tr>
<td colspan=2>
<center>
<b class=\"text\">LOGIN</b>
</center>
</td>
</tr>
<tr>
<td class=\"text\" width=\"90\"><img src=\"../images/overall/1x1.gif\" width=\"30\" height=\"8\">Username:</td>
<td width=\"169\">
<input type=text name=username>
</td>
</tr>
<tr>
<td class=\"text\" width=\"90\"><img src=\"../images/overall/1x1.gif\" width=\"30\" height=\"8\">Password:</td>
<td width=\"169\">
<input type=password name=password\">
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input type=\"button\" name=\"Button\" value=\"Login!\" onClick=\"Login()\">
</td>
</tr>
</table>
</form>
</body>
</html>
