Moving Cursor

Results 1 to 4 of 4

Thread: Moving Cursor

  1. #1
    Join Date
    Dec 1969

    Default Moving Cursor

    I have page with input form on it. I want to get the cursor to go into the first input field so the user can start typing. Who do I?

  2. #2
    Joel M Guest

    Default RE: Moving Cursor

    if your talkin about taking the focus to the form as soon as the page loads it&#039s something that is very easily done with javascript, all you gotta do is put this function in the head:<BR><BR>&#060;script language="javascript"&#062;<BR>&#060;!--<BR>function look() {<BR>document.form1.text1.focus();<BR>}<BR>//--&#062;<BR>&#060;/script&#062;<BR><BR>then just put ---onLoad="look()"---<BR>in the body tag of the page, then as soon as it&#039s done loading it will take the focus to the form

  3. #3
    Val D Guest

    Default RE: Moving Cursor

    I have the same problem but do not wish to use javascript.<BR>Is there a way of focusing the cursor in VBscript?

  4. #4
    Rob Guest

    Default RE: Moving Cursor

    On the window OnFocus event, you can do the following:<BR>"Srch_Name" is the name of the form<BR>"txtFirstName" is the name of the control<BR><BR>function window_onfocus() <BR>{<BR> document.Srch_Name.txtFirstName.focus()<BR> return true<BR>}

Posting Permissions

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