Prevent ESC Key on Browsers |
|
In a web page, after filling controls, pressing ESC Key clearing all the fields in the page. How to prevent ESC key clearing all the values in the page?
|
RajKumar |
Answered# (13)
|
Reply For This Question
|
|
|
Answer(s) Posted
|
|
Prevent ESC Key on Browsers [Solved]
|
|
Below code will prevent browser clearing the fields.
$(document).keydown(function (e) {
if (e.keyCode == 27) {
e.preventDefault();
}
});
|
Raj Kumar
| Answered# (13)
|
|
|
Post Your Answer
|
Please login to post your answer.
|
|
|