[thelist] a VBScript question about selecting text.
Craig Dyer
craig at aardvark.net.au
Sat Jun 29 14:34:01 CDT 2002
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