set focus

Results 1 to 2 of 2

Thread: set focus

  1. #1
    Join Date
    Dec 1969

    Default set focus

    I know this is an easy problem, but I need to open my form with the cursor already set in the text box. Isn't there some setfocus command or something like that?

  2. #2
    Mike Shaffer Guest

    Default RE: set focus

    &#060;script language="JavaScript"&#062;<BR>function dosetfocus() {<BR>&nbsp;&nbsp;&nbsp;document.formname.fieldname .focus();<BR>}<BR>&#060;/script&#062;<BR><BR>...<BR><BR>&#060;body onload="dosetfocus()"&#062;<BR><BR>etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts