Link to home
Start Free TrialLog in
Avatar of juliefernandes
juliefernandes

asked on

Javascript to autotab to next input field after max characters entered

I need some javascript that will tab to the next input box once the maximum number of characters has been entered.  This is for entry of a telephone number and we need three different input boxes but don't want users to have to tab each time.  I'm sure this is simple, but I don't know how to do it.
ASKER CERTIFIED SOLUTION
Avatar of knightEknight
knightEknight
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Remember to surround the whole thing up there with <FORM> and </FORM> tags (especially if you are using Netscape).  Also, if you are using netscape, you must include this at the top of your page:

<SCRIPT language='javascript'>
  if ( document.layers )
    document.captureEvents( Event.KEYUP );
</script>
Avatar of juliefernandes
juliefernandes

ASKER

thanks for the quick response.  perfect!