Voila mon probleme:
A l'origine je trouve un script qui permet de lancer un lien kan j'appuie sur une touche et ki marche tres bien, dans lequel j'ai ceci:
if (window.event.type == "keypress" & window.event.keyCode == 49)
{
document.location.href= "02.htm";
}
ayant beaucoup de touche a programmer je me dit qu'un switch serait tres bien, mais le probleme c'est ke j'ai deux egale dans ma condition alors le switch bug :
switch (window.event.type== "keypress" & window.event.keyCode) {
case 49:
document.location.href= "02.htm";
return true
break;
case 43:
document.location.href= "00.htm";
return true
break;
}
Au secours pleassssse !