• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to over ride default esc behaviour on textarea

 
Raghubir Bose
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a textArea and the default behaviour of IE is when u type something and hit esc button the text will disappear.Now I want to put a confirm box when I press esc button and if I select ok ..then only the text in the text area will disappear..

I have been trying for some time to solve this.I can trap the eventcode and that for the esc button is 27 but the text is disappearing and I cannot hold it ...

any clues ???
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic