marhoons Posted December 10, 2006 Share Posted December 10, 2006 Hello.. I want any Honey to explain to me or write some code to do this Job.. ::) I want to use quick insert sentence Like: Botton (H).. if i press botton(H) where is the pointer & insert (Hello..)My target is great some Shortcut of sentences are used most of the time..for i.e:Botten(H) ===> Hello My darlingBotten(G) ===> Good MorningBotten(S) ===> See You later ;D But don't forget we don't need cleear all text in textarea..Thanks for all..any one have idea to help me.. ?! Quote Link to comment Share on other sites More sharing options...
alpine Posted December 10, 2006 Share Posted December 10, 2006 Example: (edit[color=blue] s c r i p t[/color] without spaces)[code]<s c r i p t type="text/javascript">function insert(id,text){ document.getElementById(id).value += ' ' + text + ' ';}</script><a href="#" onclick="insert('my_field','Hello there'); return false;">Add "Hello there" to the form</a><textarea id="my_field"></textarea>[/code] Quote Link to comment Share on other sites More sharing options...
marhoons Posted December 10, 2006 Author Share Posted December 10, 2006 ;D that i want thanks alot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.