<textarea>123456798<b>123</b></textarea> <br><input> <br><script> <BR><!-- <BR> var _insertText = function(A){ <BR> var B = document.getElementById('test'); <BR> B.focus(); <BR> var C = document.selection.createRange(); <BR> if(C){ <BR> if(C.text.length > 0) C.text += A; <BR> else C.text= A; <br><br> C.select(); <BR> } <BR> } <BR>//--> <BR></script> <br>