Using arrows-keys to navigate
问题 I am wondering if there was a possibility to navigate with arrow keys through a table I created with JS(using jQuery)? I mean jumping from cell to cell...The script is for Greasemonkey. The alert, however, works. I just got no idea how to make it well-functioning. $(document).keydown(function(e){ if (e.keyCode == 37) { alert( "left pressed " ); return false; } if (e.keyCode == 38) { alert( "up pressed " ); return false; } if (e.keyCode == 39) { alert( "right pressed " ); return false; } if (e