Iam trying to do HTML EDITOR in a javascript.I have the textarea and got
the Highlighted selection but didn't know how to get the Location of the
substring from the main string for making it as a HTML.

if you know this ,pls e-mail me at Hari.s1@att.net or shari@electricvine.com

Thank you,

Vidhya hari.