Run keyboard keys


R

rbscheer

Hi.

Is it possible to use Javascript to simulate a keyboard key? For
example, when the user clicks an image a piece of code runs the F1 key,
or a combination of keys like SHIFT+F2.

Thanks,
Robert Scheer
 
Ad

Advertisements

R

Randy Webb

(e-mail address removed) said the following on 8/5/2005 10:00 AM:
Hi.

Is it possible to use Javascript to simulate a keyboard key? For
example, when the user clicks an image a piece of code runs the F1 key,
or a combination of keys like SHIFT+F2.

No.
 
Ad

Advertisements

A

ASM

Hi.

Is it possible to use Javascript to simulate a keyboard key? For
example, when the user clicks an image a piece of code runs the F1 key,
or a combination of keys like SHIFT+F2.

JS can only use keyCode of
- alphanumeric keys
- arrows keys
- space, return (& enter), page ud & down, keys
it can also (easyless) detect control and alt

but mouse clicks or F keys are unknown

try this :
http://perso.wanadoo.fr/stephane.moriaux/truc/key_code.htm
 

Top