Results 1 to 1 of 1

Thread: javascript: any way to SET position of cursor in a textbox??? [Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    Cape Town, RSA
    Posts
    11

    javascript: any way to SET position of cursor in a textbox??? [Resolved]

    i am trying to SET the position of the cursor within an asp:textbox using javascipt.
    This would probably happen on the keydown event.

    e.g.

    a textbox contains the word "example"
    focus is on the textbox and the cursor is before "x"
    user then presses a key, and i would like the cursor to move to between "m" and "p".

    This isn't my actual intention, but it is similar to what i would like to happen.

    is this possible in javascript??
    Last edited by muri; Aug 26th, 2004 at 02:48 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width