File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with esc key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with esc key" Watch "Problem with esc key" New topic

Problem with esc key

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122

I have designed a form.After entering all the values in the form and if i click esc button the form is beingm reset.Can anyone help me out how to disable the esc key.
Thanx in advance,
Visu N.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
That is the default property of the escape key on a form. Some people know that and use it so you may be eliminating a feature for some users.

You can try to capture the key and return false.

This link should give you what you need.

I agree. Here's the link:
subject: Problem with esc key
jQuery in Action, 3rd edition