This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes onKeyPress Event In Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onKeyPress Event In Javascript" Watch "onKeyPress Event In Javascript" New topic

onKeyPress Event In Javascript


Joined: Dec 27, 2004
Posts: 16

i have 2 text area in my page. i type in first textarea, simultaneously the relevent information are updated in second textarea. i have use onkeypress event in javascript. but i delete the character in 1st textarea can't delete in 2nd textarea.

please tell me how to access DEL key in javascript onkey press event.


Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
These little scripts may give you some idea:

It is sorta covered in the JavaRanch Style Guide.
subject: onKeyPress Event In Javascript
It's not a secret anymore!