Jeff Thies wrote:
Is there a NS7, Opera7 or Mozilla equivalent for:
document.selection.createRange();
For Mozilla if you want to manipulate the selection in a text control see
http://www.faqts.com/knowledge_base/.../13562/fid/130
If you want to manipulate the selection within text elements then
Mozilla offers the method
var selection = window.getSelection();
if (selection.rangeCount) {
var range = selection.getRangeAt(0);
}
That range object is a W3C DOM Level 2 Range object, see
http://www.w3.org/TR/DOM-Level-2-Tra...el-2-Range-idl
However the nicest methods surroundContents and insertNode are still
buggy with Mozilla as far as I know.
--
Martin Honnen
http://JavaScript.FAQTs.com/