"onkeypress" event

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

Guest

We are using the "onkeypress" event in Javascript to determine when
the user hits a particular key. This works well unless an ASP.NET
control (such as a textbox) has focus. In this case the onkeypress
event does not fire. Unfortunately, our need is to handle key presses
when a control does have focus, so we are kind of stuck right now.

My question is are we approaching this in the correct way? Is there
a better way to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top