Hi,
i want to get the word under the mouse through javascript,but i cannot find any helpful api. in firefox, mouseEvent has property rangeParent and rangeOffset that help me to get the word under the mouse, but in webkit, i can only find which node under the mouse ,cannot find any position information inside the text node. for example, in the following html, i can only find the mouse stay on a HTMLDivElement and it's content is " Ap The ...", what i want is which word the mouse stay on.
<div>
AP The measure cleared a key hurdle on Monday when the Senate's newest Republican
</div>


 Best Regards,
 baizhenxuan
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to