Aug 9, 2003 #1 russland Programmer Joined Jan 9, 2003 Messages 315 Location CH short quest. how can i capture the left and right arrow key? any clue? cheers brayan
Aug 9, 2003 #2 vbkris Programmer Joined Jan 20, 2003 Messages 5,994 Location IN try this: <input type="text" onkeypress="alert(event.keyCode())"> Known is handfull, Unknown is worldfull Upvote 0 Downvote
try this: <input type="text" onkeypress="alert(event.keyCode())"> Known is handfull, Unknown is worldfull
Aug 9, 2003 Thread starter #3 russland Programmer Joined Jan 9, 2003 Messages 315 Location CH DID YOU VERIFY BEFORE YOU ANSWERED? i don't think so. cheers anyway Upvote 0 Downvote
Aug 9, 2003 #4 mansii Programmer Joined Oct 18, 2002 Messages 641 Location ID Try this: save the codes to an .htm file, then open it in your browser. Code: <form> <input type="text" onkeyup="javascript:alert(window.event.keyCode)"> </form> You will notice that the value of the "Left Arrow" is 37 and "Right Arrow" is 39. Upvote 0 Downvote
Try this: save the codes to an .htm file, then open it in your browser. Code: <form> <input type="text" onkeyup="javascript:alert(window.event.keyCode)"> </form> You will notice that the value of the "Left Arrow" is 37 and "Right Arrow" is 39.
Aug 9, 2003 #5 vbkris Programmer Joined Jan 20, 2003 Messages 5,994 Location IN oops that () must have been extra. i have used the keyCode event for creating a context sensitive help for one of my web sites... Known is handfull, Unknown is worldfull Upvote 0 Downvote
oops that () must have been extra. i have used the keyCode event for creating a context sensitive help for one of my web sites... Known is handfull, Unknown is worldfull