Computer Science Canada Javascript: Need easy answer to how to cause a keypress. |
Author: | WOIKeller [ Fri Nov 27, 2009 10:51 pm ] |
Post subject: | Javascript: Need easy answer to how to cause a keypress. |
I have been googling my butt off to find an easy answer to be able to cause the equivalent of a keypress using javascript. If you want the way that I'll be using it. I want to be able to use the keycodes: 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13. It is to make a bookmarklet in FireFox to be able to activate the konami code in facebook. |
Author: | bugzpodder [ Sat Nov 28, 2009 4:05 am ] |
Post subject: | RE:Javascript: Need easy answer to how to cause a keypress. |
http://www.howtocreate.co.uk/tutorials/javascript/domevents |
Author: | bugzpodder [ Sat Nov 28, 2009 4:16 am ] |
Post subject: | RE:Javascript: Need easy answer to how to cause a keypress. |
And isntead of doing that, why don't you just make a call to the js script that runs the konami code directly? |