Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onKeyPress Event In Javascript

 
Kifar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello!

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.

thanks

rafik
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These little scripts may give you some idea:
http://www10.brinkster.com/A1ien51/Scripts/KeyCode.htm

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic