Skip to end of metadata
Go to start of metadata

The onkeyup event activates when a keyboard key is released on an element.  The event can be specified as a JavaScript expression or the name of a JavaScript function.  

If an expression is used, the JavaScript keyword this refers to the element on which the key was released.  

If the name of a function is used, the function will receive 2 parameters when called: 

  • The browser event object; this object can be used to retrieve the JavaScript key code for the key released using the keyCode property
  • A reference to the element on which the key was released


The following code uses AJAX to retrieve a customer's name as the customer number is being typed into an input box.

onkeyup: getCustomerName

  • No labels