bonjour,
les if imbriqués c'est toujours une
catactrophe, enfin pour moi
<HTML>
<HEAD>
<script>
function showKeycode(e, sEvent)
{
var iKeyCode = 0;
if (window.event) iKeyCode = window.event.keyCode;
else if (e) iKeyCode = e.which;
window.document.title=iKeyCode.toString();
switch (iKeyCode.toString()) {
case "85":
window.status="a";
if (e.altKey == true)
{ if (iKeyCode.toString()==85)
{
//posted=true;
//__doPostBack('txtb_frage:','TextChanged');
}
}
break;
case "118":
//posted=true;
//__doPostBack('Btn_speichern:','');
window.status="b";
break;
case "119":
//posted=true;
//_ddoPostBack('Button1:','');
window.status="c";
break;
default:
window.status="d";
//posted=false;
break;
} }
</script>
<TITLE></TITLE>
</HEAD>
<body onkeydown="showKeycode(event, 'keydown');"
</BODY>
</HTML>
si on remplace par un switch, ça marche
et ça me semble plus clair ( enfin pour moi ... )
mis ce dont en ne disposait pas en commentaires..
+ affichage de "là où on passe"
Cordialement
Bul. [Site] [Mail]