Textbox OnChange and OnKeyUp event

| September 21, 2010 | 0 Comments

Well! I am not sharing something very special with you guys. But it would be worthy to pay attention to little difference between Textbox OnChange and OnKeyUp eventWhat’s the difference?

  1. OnChange Event: Gets fire when the textbox has lost focus.
  2. OnKeyUp Event: Gets fire when key comes up.

So next time if you want immediate effect use OnKeyUp. However if your requirements are after changing of focus then you can carry on with OnChange.

Point to Note:

OnKeyUp event also works on Copy-Paste in Textbox. I have tested personally both on IE 5.1 and Mozilla Firefox 3.6.3.

Tags:

Category: Tips

Leave a Reply

Sex Chat Live Jasmin WP-Clear 3.0 Theme
%d bloggers like this: