Keypress javascript

I do not do much javascript. I want the page to store in a javascript the keypress event … but for one generally . Not so much for some textbox.



$("#target").keypress(function() {
  alert("Handler for .keypress() called.");
});

That is a shell to help you get started. Do a search to give you more detailed code that meets your need.