Firing a Keyboard Event at the Body - JavaScript (?)

Posted by user317985 on Stack Overflow See other posts from Stack Overflow or by user317985
Published on 2010-04-15T21:03:27Z Indexed on 2010/04/15 21:13 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

I've done a lot of research on this but have come up empty handed. What I would like to do is invoke or create an event for the right arrow key (Key Code 39). I was planning on using an onclick event inside an tag to go to a function where this event could be 'fired'. Any help would be appreciated.

If anyone needs context, I have a jQuery content slider that's functionality is very hard to alter and currently the functionality I need to emulate only occurs when a user hits the right arrow on their keyboard. What I would like to do is tie an onclick() event to a image that when clicked on fires the right keyboard event and the content will slide. Please let me know if I can provide further details or explanation.

My working demo for this is: http://greenplanet3d.com

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom