Search Engine Optimization > Web Development > How to paste a string into a form field
How to paste a string into a form field
Posted by Mark on March 10th, 2006

Hi,
Can someone suggest the easiest way to create a link which when
clicked on will paste a particular text string into the current cursor
position (eg. in a text area on a form)?
--
Mark

Posted by Gazza on March 10th, 2006



Mark mumbled the following on 10/03/2006 11:58:
Slight point of your question - as soon as the link is clicked, focus is
lost on the text area and gained by the link itself. What you're after
is some Javascript that will put a text string *at the end of the
current content of the text area*.

Have a look at forum code, specifically where you can click a smiley to
have it enter "" etc.

--
Gazza
Mobile Number Network Checker - http://mnnc.net/
Leovanna Leonbergers - http://leovanna.co.uk/
Scarlet Town - http://scarlettown.co.uk/

Funbolt.com - Entertainment portal, wallpapers, sexy celebs