[thelist] a VBScript question about selecting text.

Craig cd-ml at aardvark.net.au
Sat Jun 29 12:32:00 CDT 2002


If this message is posted twice, sorry.. i sent from an email account that
wasn't subscribed to the list, and the moderator is reviewing it apparently.
:)

Hi all.  Is there a way with VBScript or JavaScript to get the position of
the cursor in a text field?  I would like the user to be able to select a
string of text in a <textarea> field and wrap HTML tags arround it.  eg..
User clicks in text box then selects a word, I would then like the user to
press a form button and wrap, say, <b>wordhere</b> around it.

Any input is appreciated

Thanks,
Craig.






More information about the thelist mailing list