How to get the exact caret position in the TextArea HTML control

Discussion in 'Javascript' started by vasu, Aug 4, 2005.

  1. vasu

    vasu Guest

    Hi Guys,
    Please help me, I want to get the exact caret position, in the
    TextArea HTML control.
    Even if I enter empty lines in the TextArea, I mean just press "Enter"
    Key, it should treat as 2 characters, like how Window's EDIT ( MFC
    CEdit)control has API to get the information.

    regards,
    srinivas
     
    vasu, Aug 4, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. torch
    Replies:
    3
    Views:
    134
    Thomas 'PointedEars' Lahn
    Jun 20, 2004
  2. R. Kangas
    Replies:
    0
    Views:
    179
    R. Kangas
    Jan 26, 2006
  3. Replies:
    1
    Views:
    123
  4. Álvaro G. Vicario

    Limit <textarea> length without losing caret position

    Álvaro G. Vicario, May 9, 2008, in forum: Javascript
    Replies:
    7
    Views:
    171
    Thomas 'PointedEars' Lahn
    May 20, 2008
  5. ReGenesis0
    Replies:
    3
    Views:
    382
    ReGenesis0
    Sep 28, 2008
Loading...

Share This Page