Czy ktoś może mi podpowieć jak zrobić aby te znaczki nie wpisywały mi się tylko w TEXT1 ale w polu w którym aktualnie znajduje się kursor?
<script type="text/javascript"> function setLetter(text) { var txtarea = document.searchParam.word; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function active(text) { if (text.createTextRange) text.caretPos = document.selection.createRange().duplicate(); } </SCRIPT>