开发者

Know word at text insertion pointer on a webpage?

开发者 https://www.devze.com 2023-01-11 14:05 出处:网络
I would like to know the word at the position of the text insertion pointer in a form on a webpa开发者_Python百科ge. My problem is that I don\'t really know what language to use to do this, and I have

I would like to know the word at the position of the text insertion pointer in a form on a webpa开发者_Python百科ge. My problem is that I don't really know what language to use to do this, and I have no idea how to do it in Javascript.

Any ideas?


You are looking for

get caret position javascript IE firefox

http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/

Here is how to find moused over word on page

How to get a word under cursor using JavaScript?

0

精彩评论

暂无评论...
验证码 换一张
取 消