[Javascript] Default Input

Esther_Strom at hmco.com Esther_Strom at hmco.com
Mon Mar 11 08:43:48 CST 2002


<body onLoad="javascript:document.formName.fieldName.focus()">



                                                                                                                                             
                      Howard Salter                                                                                                          
                      <HowardSalter at penningt         To:      javascript at LaTech.edu                                                          
                      onseed.com>                    cc:                                                                                     
                      Sent by:                       Subject: [Javascript] Default Input                                                     
                      javascript-admin at LaTec                                                                                                 
                      h.edu                                                                                                                  
                                                                                                                                             
                                                                                                                                             
                      03/11/02 08:34 AM                                                                                                      
                      Please respond to                                                                                                      
                      javascript                                                                                                             
                                                                                                                                             
                                                                                                                                             




This may be more of an HTML question than a javascript question, but here
goes anyway. How do I get a form to set the focus on an input field when
the
page loads. For instance, I have a page that has an input form that is used
over and over again. The users would like the focus to be set to the first
field on the form so they don't have to click on it every time they start a
new entry. Any ideas?

TIA,
Howard
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript







More information about the Javascript mailing list