Pointer of mouse and text form.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • opt_inf_env@yahoo.com

    Pointer of mouse and text form.

    Hello,

    Anybody know wether one can create such text-form that pointer of mouse
    will be automatically set in the text field of form? It means that user
    can type text immediately after page has been loaded, without putting
    pointer of mouse by hand in the text field.

    Thank you.

  • phpfrizzle@hotmail.com

    #2
    Re: Pointer of mouse and text form.

    Yes, of course, but it's actually javascript...
    Place the next inside the body tag:

    onLoad="documen t.formname.fiel dname.focus();"

    nothing more to it...

    Greetings

    Comment

    • Michael Fesser

      #3
      Re: Pointer of mouse and text form.

      .oO(phpfrizzle@ hotmail.com)
      [color=blue]
      >Yes, of course, but it's actually javascript...
      >Place the next inside the body tag:
      >
      >onLoad="docume nt.formname.fie ldname.focus(); "
      >
      >nothing more to it...[/color]

      In some cases this can be really annoying. If there are multiple form
      fields on the page and the user already starts typing while the page
      loads he will probably not be very happy when the focus jumps back to
      the first field after the download is complete.

      Micha

      Comment

      • frizzle

        #4
        Re: Pointer of mouse and text form.

        Yes, i know. But on the other hand, i find it quite
        useful on simple forms with only one or 2 fields,
        like login-pages...

        frizzle

        Comment

        Working...