<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
function ouvrir(){
var done=0;
var username=document.login.login.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
var url ="http://www.google.com";
if (username=="bonjour" && password=="mot")
{ window.location.replace(url);
done=1; }
if (done==0) { alert("Mot de passe ou Login incorrect !"); }
}
</script>
</head>
<body>
<FORM NAME="login">
<INPUT NAME="login" value="Utilisateur" size="12" onFocus="this.value=''"> <INPUT NAME="password" type="PASSWORD" value="password" size="12" onFocus="this.value=''"> <input type="submit" Value="Se connecter" onClick="ouvrir()"> </form>
</body>
</html>
Partager