[thelist] Interesting Form Behavior

Jeanne Pelletier jpellet at attbi.com
Thu May 23 07:19:00 CDT 2002


Here's what I use to accomplish  that:

 <script language="JavaScript" type="text/javascript">

function dobmonth_autotab() {
   var lengther =  document.form["dobmonth"].value;
    if (lengther.length == 2){
     document.form["dobday"].focus();
  }
  }

  function dobday_autotab() {
     var lengther =  document.form["dobday"].value;
      if (lengther.length == 2){
       document.form["dobyear"].focus();
     }

  }
  </script>

hope it helps
Jeanne
----- Original Message -----
From: "Martin Kuplens-Ewart" <martin at takingitglobal.org>
To: <thelist at lists.evolt.org>
Sent: Thursday, May 23, 2002 12:45 AM
Subject: RE: [thelist] Interesting Form Behavior


> This might be for telephone numbers, I'm guessing.
>
> Only way I can see that being done, is using javascript, although I'm
> not sure how... I guess you'd count the number of char's in a field and
> then move focus to the next field if there are three, or something
> similar. I'm sure someone out there must have some code... Or take a
> look at the page source... If they're linking to a .js... Take a look at
> that. :)
>
> I think bell canada does that for its DSL availability check, etc.
>
> -m
>
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Burhan Khalid
> Sent: May 23, 2002 12:35 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] Interesting Form Behavior
>
> > I've been noticing that one some sites, form fields automatically jump
>
> > to the next one when filled. Does anyone know if this is Microsoft
> > centric?
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list