Strike any key on your keyboard to get its code
..............................(french keyboard)...................................
This script will detect :
-which modifier key type [Alt, Ctrl, Shift] has been pressed
-which function key has been pressed : ['BackSpace','Tab','Enter','Pause','CapsLock','Escape',
'Space','PageUp','PageDown','End','Move','Left','Up',
'Right','Down','Insert','Delete','F1','F2','F3','F4','F5',
'F6','F7','F8','F9','F10','F11','F12','NumLock','Home']
*with a "onkeypress" event function keys are not detected
...In this example our option is the "onkeydown" event...
...Download the JavaScript source code (1.12 kb)
Strike any key on your keyboard to get its code
..............................(french keyboard)...................................
This script will detect :
-which modifier key type [Alt, Ctrl, Shift] has been pressed
-which function key has been pressed : ['BackSpace','Tab','Enter','Pause','CapsLock','Escape',
'Space','PageUp','PageDown','End','Move','Left','Up','Right','Down',
'Insert','Delete','F1','F2','F3','F4','F5','F6','F7','F8',
'F9','F10','F11','F12','NumLock','Home']
*with a "onkeypress" event function keys are not detected
...In this example our option is the "onkeydown" event...