Guest_imported
New member
- Jan 1, 1970
- 0
I have a problem. Here is where the problem is
-----SAMPLE CODE------------
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub Html_onclick
txtarea.value = area.value & "</Html>"
End Sub
-->
</script>
I have made an online html editor
Where i click a button and a html tag would apear in the textarea.
the problem is that i want to place the tag where i place the cursor. It is at the moment placing the text always at the end of the string.
How do i specify that it must paste the text where i place the cursor and give the textarea focus.
Please help me
-----SAMPLE CODE------------
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub Html_onclick
txtarea.value = area.value & "</Html>"
End Sub
-->
</script>
I have made an online html editor
Where i click a button and a html tag would apear in the textarea.
the problem is that i want to place the tag where i place the cursor. It is at the moment placing the text always at the end of the string.
How do i specify that it must paste the text where i place the cursor and give the textarea focus.
Please help me