Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Internet.commerce

Partner With Us
Promotional Gifts
Compare Prices
Memory Upgrades
Shop Online
Promotional Pens
Best Price
Baby Photo Contest
Desktop Computers
KVM Switch over IP
KVM over IP
GPS
Laptops
Career Education
Prepaid Phone Card

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


General

Automatically sets focus to the next form element when the current form element's maxlength has been reached. The user, then, does not have to manually click in or tab to the next field. Very easy to change for different size fields. Perfectly suited for constant-length strings such as a phone number or social security numbers.


Phone Number :
1 - ( ) - -

Social Security Number :
- -

Notes

  • Created by: Cyanide_7
  • Posted: April 21, 2000

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoTab.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

3. From: Munish
01/23/2008 00:27:44

This javascript really help me & save my time as well!

2. From: Nasir Ali
This function has one anomaly
05/24/2007 09:09:17

This auto tab function has one anomaly that is, when we move into the text field which already has characters with max length, it bypasses that filled text field. then we need to move back to that text field and has to use only backspace tab to clear filled data. otherwise natural behavior is if a text field is filled with characters and reached max length and we move into it by tab then if we press any key the full selected text of that field must be cleared and that key pressed character must be shown.
Is there any solution to this? can we make any change in this function to act and behave logically?
anxiously waiting for your reply.Thanks.
Best regards,
Nasir

1. From: Walter Coole
05/08/2007 19:54:13

Flawed: the user can't use Shift-tab to go back to correct a mis-entered value.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.