Sunday, August 7, 2011

How can I call a function if either my left, right or spacebar keys are pressed? (Javascript)?

you can use keypress or keydown event and check the key code value of event, if its left or right or spacebar key then do you code.

No comments:

Post a Comment