Results 1 to 4 of 4

Thread: js and focus()

  1. #1

    js and focus()

    i cant seem to get the keyboard to go back to typing at the end of my text area like i wanted it too.

    the form is name=submitlogin, id=submitlogin
    textarea name=textarea1

    so i used
    and nothing happened.

    also tried:
    var bjControl=document.forms["submitlogin"].elements["textarea1"];
    objControl.scrollTop = objControl.scrollHeight;

    neither one worked, and my js knowledge is scetchy at best, even reading a js book, and trying to understand other's code.

    any suggestions for this?

    workstations&servers @

  2. #2
    Join Date
    Aug 2004
    Tulsa, Oklahoma
    I think this is what y uwant to do:
    Mike Bell
    Image Hosting

  3. #3
    document.getElementById('submitlogin').focus(); should do the trick

  4. #4
    thanks, got it working now
    workstations&servers @

Posting Permissions

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