praud2

Bonsoir ,
je me casse les dents sur une fonction qui j'en suis sûr est très simple mais enfin ...
Sur un ecran type mot de passe je voudrais eliminer le bouton ( input type etc etc ) et faire que la touche enter soit la touche de login
<HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Login</TITLE>
<script LANGUAGE="JavaScript">
function Login(){
var done=0;
var password=document.login.password.value;
if ( password=="5730") {
window.location="index1.html";
}
if ( password=="438") {
window.location="index7.html";
}
if (password=="1234") {
window.location="index3.html";
}
if ( password=="1234") {
window.location="index4.html";
}
if ( password=="1234") {
// Vous pouvez réservez une page pour vous même(options, etc.)
window.location="index2.html";
}
}
</script>
<table height="120" border="0" summary="">
<tr>
<td></td>
</tr>
</table>
<BODY background="Font.jpg">
<CENTER>
<FORM name="login">
<TABLE width=200 border=1 cellpadding=3>
<tr><td colspan="2" bgcolor="#000099"><CENTER><b><font color="white">Mot de passe</font></b></CENTER></td></tr>
<tr><td></td></tr>
<tr><td align="center"><input type="PASSWORD" size="12" name="password" autocomplete="ON"></td></tr>
<tr><td colspan=2 align=center><input type="button" value="Connexion" onClick="Login()"></td></tr>
</TABLE>
</FORM>
</CENTER>
</BODY>