How do I insert a character at the caret with javascript?
<p>I want to insert some special characters at the caret inside textboxes using javascript on a button. How can this be done?</p>

<p>The script needs to find the active textbox and insert the character at the caret in that textbox. The script also needs to work in IE and Firefox.</p>

<p><strong>EDIT:</strong> It is also ok to insert the character "last" in the previously active textbox.</p>
