当前位置: 代码迷 >> JavaScript >> firefox下怎么获取iframe中的光标位置
  详细解决方案

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

热度:185   发布时间:2012-02-16 21:30:36.0
firefox下如何获取iframe中的光标位置
兄弟要开发一个兼容firefox的web   editor
现在遇到一个最大的问题:在iframe编辑状态下如何获取光标的问题 类似于IE下的createRange() firefox2.0下createRange()似乎会溢出

------解决方案--------------------
if(typeof(document.getElementById( 'aaa ').selectionStart) == "number ")
alert(textBox.selectionStart);
  相关解决方案