The attached code defines a global variable to allow or disallow the backspace key and hooks an event handler for the OnKeyPress event to block it if necessary.
To use it, just add thescript to the document, and to allow the backspace on any field, just add the following client-side attribute to the control:
onfocus="allowBackSpace(true);"
onblur="allowBackSpace(false);"
I have tested this on IE and Firefox.
To use it, just add the
onfocus="allowBackSpace(tr
onblur="allowBackSpace(fal
I have tested this on IE and Firefox.
1: | <script |
No comments:
Post a Comment