[Javascript] Programmatically set onchange event for textbox

Glenn E. Lanier, II glenn_lanier at netzero.net
Wed Oct 4 09:49:44 CDT 2006


> -----Original Message-----
> From: Brian L. Matthews
> Sent: Wednesday, October 04, 2006 12:25 AM

> onchange only fires when the field loses focus (i.e. you tab out or 
> click the page somewhere outside the field). That's often sufficient 
> (it usually doesn't make sense to do field validation on a partially 
> typed field). If you want to validate the first digit as soon as it's 
> typed, look into the onkey events, but make sure you read about 
> browser compatibility (<http://www.quirksmode.org/> is a good site, 
> I'm sure there are others).

Thanks. That would have given me some grief.

--G




More information about the Javascript mailing list