mredkj.com logo

An update blog for mredkj.com

What's this blog about?

mredkj.com is an unfocused programmer resource from Matt, Eric, and Keith

This blog will keep you up to date with our latest site changes.

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.

posted by Keith [10/25/2005 02:37:00 AM] - permalink - 2 comments

2 comment(s):

Anonymous Anonymous wrote:

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]  

Anonymous Anonymous wrote:

This Code Does Not Work FireFox1.0.7 onkeydown

Posted [1/05/2007 07:19:00 AM]  

Post a Comment