[Javascript] formatting textarea

Alan Easton alan.easton at unn.ac.uk
Thu May 2 09:10:44 CDT 2002


Hello People,
 
I am wanting users to format text in a textarea clientside before submitting
it, namely just bold, italics, underline, line and paragraph breaks. I don't
want them to have to know any html tags to do this.
 
Is there a way, using Javascript, they could just highlight the text in the
textarea they wished formatting, and pressed the appropriate button which
would insert the tags at the beginning and end of the highlighted text.
 
Or is there a better alternative to accomplishing this than the way I am
currently thinking.
 
Any help would be appreciated.
 
Many Thanks,
 
Alan...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3376 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020502/37d500d8/attachment.bin>


More information about the Javascript mailing list