• 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 ???
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!