firefox下怎么获取iframe中的光标位置

firefox下如何获取iframe中的光标位置兄弟要开发一个兼容firefox的webeditor现在遇到一个最大的问题:在ifr

firefox下如何获取iframe中的光标位置
兄弟要开发一个兼容firefox的web   editor
现在遇到一个最大的问题:在iframe编辑状态下如何获取光标的问题 类似于IE下的createRange() firefox2.0下createRange()似乎会溢出

[解决办法]
if(typeof(document.getElementById( 'aaa ').selectionStart) == "number ")
alert(textBox.selectionStart);