client side ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i'm using the javascript event "onkeypress" and was wondering when this
event runs if i can determine what key was pressed (specifically if the down
arrow key was pressed.)?

thanks,
rodchar
 
The OnKeyPress would not capture the down arrow or up arrow.

Use the OnKeyUp or onKeyDown events instead:

function fnKeyUp()
{
alert(event.keyCode); //would display 38 for uparrow and 40 for downarrow.
}
 
Back
Top