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; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060505/c8a9d3e8/attachment.htm>