Tuesday, October 25, 2005
KeyPress Validation - Updates
validate.html
2005-10-25:
* Changed the code. Basically the same, but condensed.
* Previous example is archived
* Updated the chart for onkeypress and added a chart for onkeydown and onkeyup.
* Restructured the page, took out some outdated descriptions and explanations.
2005-10-25:
* Changed the code. Basically the same, but condensed.
* Previous example is archived
* Updated the chart for onkeypress and added a chart for onkeydown and onkeyup.
* Restructured the page, took out some outdated descriptions and explanations.
posted by Keith [10/25/2005 02:37:00 AM] - permalink - 2 comments
2 comment(s):
Nice simple javascript routine to limit entry. However it doesnt take into account the user "pasting" in bad values. In the example given, the user can successfully paste text from the clipboard such as "12345678"
I believe there's a onpaste and onbeforepaste events too, but I suspect they are not widely supported.
Posted [5/24/2006 12:26:00 PM]
This Code Does Not Work FireFox1.0.7 onkeydown