Изменение значения переменной с помощью клавишы.
Изменение значения переменной с помощью клавишы КЛавиатуры.
Подкиньте,плз, код по проще. |
javasc, пример из МСДН...
<HEAD> <SCRIPT> function checkKey() { if (window.event.shiftKey) // checks whether the SHIFT key // is pressed { txtOutput.value = "true"; // returns TRUE if SHIFT is pressed // when the event fires } } </SCRIPT> </HEAD> <BODY> <P>Press the SHIFT key while pressing another key.<BR> <INPUT TYPE=text NAME=txtEnterValue onkeypress="checkKey()"> <P>Indicates "true" if the shift key is used.<BR> <INPUT TYPE=text NAME=txtOutput> </BODY> |
Только "жи/ши" через "И"... :lol:
|
Часовой пояс GMT +3, время: 19:47. |