Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
DHTML/JavaScript

How do I insert text into a form field/textarea at the cursor? Pages that link to <a href="https://ozoneasylum.com/backlink?for=5590" title="Pages that link to How do I insert text into a form field/textarea at the cursor?" rel="nofollow" >How do I insert text into a form field/textarea at the cursor?\

This is a little tricky and is currently only supported in IE but it degardes nicely in other browsers (the text is still inserted just at the end). See the resources below:

---------------------------
Relevant threads:

Cursor Position in form field

---------------------------
Relevant links:

How can I insert text at the caret(cursor) position of a text field/text area?

____________________
Emperor

(Added by: Emperor on Wed 12-Mar-2003)

(Edited by: dixon on Fri 21-Nov-2003)

(Edited by: dixon on Fri 21-Nov-2003)
(Edited by Emperor on 10-01-2004 19:32)

« BackwardsOnwards »

Show Forum Drop Down Menu