Tu peux mettre ca :
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="rating" content="general">
<meta name="robots" content="noindex,nofollow">
<meta name="document-state" content="static">
<style type="text/css">
<!--
body { background-color: #FFFFFF; font-family: "Tahoma", "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 12px; color: #000000; }
td { font-family: "Tahoma", "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 12px; color: #000000; }
-->
</style>
<script language="JavaScript">
<!--
function Try(passwd){
if (passwd =="PASS" ){
alert("Le mot de passe est correct." );
location.href = "vrai.htm";
}
else {
alert("Le mot de passe est incorrect. Veuillez recommencer." );
location.href = "faux.htm";
};
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<br><br>
Entrez le mot de passe pour continuer :
<form name="pass">
<table summary="" cellpadding="0" cellspacing="0" border="0" width="200" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td align="center" width="100%"><input type="password" name="txtpasswd" size="20"></td>
</tr>
<tr>
<td align="center" width="100%">
<input type="button" name="cmdtry" value="Cliquez ici pour valider" onclick="Try(pass.txtpasswd.value)"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
Message édité par Simeonn le 01-12-2002 à 17:42:00