Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Javascript: Need easy answer to how to cause a keypress.
Index -> Web Design
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
WOIKeller




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
bugzpodder




PostPosted: 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
bugzpodder




PostPosted: 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?
Display posts from previous:   
   Index -> Web Design
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: