document.selection

作者:chilleen 来源:ITPOW(原创) 日期:2006-12-7

document.selection 表示当前网页中的选中内容。

方法有:

  • clear 清除选中的内容
  • empty 取消选中
  • createRange 返回 TextRange 或 ControlRange 对象
  • createRangeCollection 不支持

属性有:

  • type 选中内容的类型
  • typeDetail 不支持

相关文章