Revision: 30987
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 26, 2010 22:53 by ATLChris
Initial Code
jQuery(document).keydown(function(e){ if (e.which == 37) { // 37 is the left arrow key code. window.location.href = 'http://www.url.com'; }; if (e.which == 39) { // 39 is the right arrow key code. window.location.href = 'http://www.url.com'; }; });
Initial URL
Initial Description
This is just a basic example of how you would allow navigation via left/right arrow keys. This is most commonly used when navigating multiple-image image galleries.
Initial Title
Navigate Pages Using the Left/Right Keyboard Arrows
Initial Tags
navigation, jquery
Initial Language
jQuery