[Javascript] Default Input

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Mon Mar 11 08:42:40 CST 2002


function setMyFocus(){
   document.formanme.itemName.focus()
}


<BODY onload="setMyFocus()">

Bob Filipiak
(Contractor)
Remtech Services, Inc.
878-0192
Intercom: 2070
Microsoft®
  C E R T I F I E D
     Professional




-----Original Message-----
From: Howard Salter [mailto:HowardSalter at penningtonseed.com]
Sent: Monday, March 11, 2002 9:35 AM
To: javascript at LaTech.edu
Subject: [Javascript] Default Input


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020311/9f81c99d/attachment.htm>


More information about the Javascript mailing list