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
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top