Hi Michael, As David mention createTextRange is only IE but as you guessed there is similar function for firefox otherwise rich text editor widget will only be available in IE. The property you looking for I think is called createRange(), getSelection()etc... Found the link of an example below who implement this kind of functionnality http://www.mozilla.org/editor/midasdemo/ Have a look at the references I think you will be able to link to everything you are looking for from there http://developer.mozilla.org/en/docs/DOM:range http://developer.mozilla.org/en/docs/DOM:document.createRange http://developer.mozilla.org/en/docs/DOM:window.getSelection Happy programming Laurent On 5/5/06, Michael Borchers <list at tridemail.de> wrote: > > found an old function that worked fine so far in IE but not in FF. FF says > createTextRange() is no function. why? > > the function is started by an textarea onselect=markText(this) > > here is the function: > function markText (objText) > { > if (objText.createTextRange()) > { > objText.selected_range = document.selection.createRange().duplicate(); > objText.cSelected = document.selection.createRange().text; > tmpText=document.selection.createRange().text; > } > } > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060505/d7f0cdb1/attachment.htm>