PranasLu's Blog


JavaScript textbox onkeypress, onkeyup, onblur number validation

Filed under: Programming — Tags: , — pranaslu @ 12:42


<input type="text"
 onkeypress="return blockNonNumbers(this, event, true, true);" />

Download script: validate2.js



  1. greetings
    i’m so pleased that i saw this article. that comment was so nice. thanks again i signed up to this site.
    are you going to write similar posts?

    Comment by Gewinne — 2010-05-17 @ 01:44

    • I’m posting here everything I find useful in my practice. I’m glad, that someone found this blog useful too :)

      Comment by pranaslu — 2010-05-17 @ 08:41

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: