Well on my forum i have a bb code and smilies inserter which uses
javascript:insert('tags')
for inserting a tags into a text boy which worked fine...
i was using
<script language="JavaScript">
function insert(input) {
strSelection =
document.selection.createRange().text
if (strSelection == "") {
document.form.post.focus()
document.selection.createRange().text = input
}
else
document.selection.createRange().text = input
return;
}
</script>
to insert the tags/smilies at the cursor and not at the end of the text, a friend told me that there seem to be problems with netscape and opera,
does anyone know how to do it for all 3 browsers ?
complete code would be nice!