Putting a cursor in a box

Results 1 to 2 of 2

Thread: Putting a cursor in a box

  1. #1
    Don DeMaio Guest

    Default Putting a cursor in a box

    Hi. I&#039m trying to set up some form pages so that, when they first load, the cursor is automatically loaded into the first field of the form. (Believe it or not, I have users who don&#039t know enough to put the cursor in the box before they start typing.) Does anyone know how to do that??

  2. #2
    Join Date
    Dec 1969

    Default RE: Putting a cursor in a box

    Use a little Javascript.<BR><BR>&#060;snip><BR>&#060;body onload="javascript:document.MyForm.MyText.Focus">< BR>&#060;Form name="MyForm" Method=post action="test.asp"><BR>&#060;input type=text name="MyText"><BR>&#060;/Form><BR>&#060;/body><BR>&#060;snip><BR><BR>Well something like that any way. Sorry if there are any error, its been a long day!<BR><BR>Hope that helps<BR><BR>Pete

Posting Permissions

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