capturing onkeyup for the whole page

C

Cartoper

I am working on a image viewing site where I need the left and right
arrows to move to the previous/next images, respectfully. I tried to
wire in an event on the body but it doesn't seem to be working. How
do I capture document wide onkeyup events?
 
C

Cartoper

I am working on a image viewing site where I need the left and right
arrows to move to the previous/next images, respectfully. I tried to
wire in an event on the body but it doesn't seem to be working. How
do I capture document wide onkeyup events?

Is it even possible to capture a key for the whole document?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top