This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes In Text Area, how to find the cursor location and insert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "In Text Area, how to find the cursor location and insert " Watch "In Text Area, how to find the cursor location and insert " New topic
Author

In Text Area, how to find the cursor location and insert

Paul Phoby
Greenhorn

Joined: Sep 19, 2002
Posts: 13
In Text Area, how to find the cursor location
Suppose my text in text area like this,
'Java Code
is very useful'
I want to insert 'script' in between 'Java' and 'Code'. I will keep my cursor location in between 'Java' and 'Code'. I will click on text 'script' by using the mouse. At that time 'script' should come in between 'Java' and 'Code'
Paul Phoby
Greenhorn

Joined: Sep 19, 2002
Posts: 13
I got the solution for my question. Go to the URL given below
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20192843.html

regards,
Phoby Paul
 
 
subject: In Text Area, how to find the cursor location and insert
 
Similar Threads
How to get or set the caret position in text (JavaScript)
swng text field issues
Cursor Not Intelligent
Previous Text Fileld Value has to be Passed while curser is on currect text field.
Java Script