onkeypress event

Results 1 to 2 of 2

Thread: onkeypress event

  1. #1
    Join Date
    Dec 1969

    Default onkeypress event

    I had taken one dropdown combo box on the client side. One of it&#039s event is onkeypress event. I have written code for it. But what I want is, that particular code should be executed only when Enter key is pressed. That is it should be executed only when a particular key is pressed and not when other key is pressed. So how can I do this? Any help would greatly be appreciated. Lots of thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: onkeypress event

    In your event handler, you can check event.keyCode to find out which key was pressed (in IE, anyway... Not sure about NS or others)<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts