Menu
I am a javascript novice and am wondering if it is possible to assign common keyboard functions to buttons. Such as can you make it so that when you click a button (<input type=”button”>) that is performs the same functions as if you were to hit keys on the keyboard?
The reason I ask is that I am working on a program for a class and we are trying to recreate the keyboard using buttons and javascript.
So when you click on the button “t” the letter t will appear in a text box. If you click the button “Shift” and then the button “t” it will place a T in the text box.
Any help is very appreciated!