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.. ?! Link to comment https://forums.phpfreaks.com/topic/30151-solved-how-i-can-use-that-way-to-insert-my-sentence/ 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] Link to comment https://forums.phpfreaks.com/topic/30151-solved-how-i-can-use-that-way-to-insert-my-sentence/#findComment-138601 Share on other sites More sharing options...
marhoons Posted December 10, 2006 Author Share Posted December 10, 2006 ;D that i want thanks alot Link to comment https://forums.phpfreaks.com/topic/30151-solved-how-i-can-use-that-way-to-insert-my-sentence/#findComment-138613 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.