getSelectedText
来源:互联网 发布:mac os x恢复出厂设置 编辑:程序博客网 时间:2024/05/22 13:27
跨浏览器的方法,用于得到光标选中的文字,来自<<javascript: The Definitive Guide>>
There is one minor incompatibility in the Example. The getSelection() methods of the Window and Document object do not return selected text if it is within an <input> or <textarea> form element: they only return text selected from the body of the document itself. The IE document.selection property, on the other hand, returns selected text from anywhere in the document.
In Firefox, text input elements define selectionStart and selectionEnd properties that you can use to query (or set) the selected text. For example:
- getSelectedText
- win2K/win2003终端服务器超出最大允许连接数解决之道全攻略
- .svn文件删除
- 一个开始
- PKU ACM 题目分类
- visio
- getSelectedText
- C# datagridview绑定Arraylist实体类的方法
- public synonym 和private synonym 可以同名
- linux2.6.29内核 进程调度分析
- 堆和栈的区别
- php 环境配置Could not execute menu item (internal error) [Exception] Could not perform service action 服务尚未启动
- Winsock五种的I/O模型
- shell学习
- 积分