How to get word under cursor?
<p>Assuming there is a <code>mousestop</code> event attached to the entire document, what is the best way to figure out the exact <em>word</em> under the cursor (if there is any text), when the mouse stops moving?</p>

<p>I can get the underlying (jQuery) element from the event handler - <code>$(document.elementFromPoint(e.clientX, e.clientY))</code> - but then what is next?</p>

<p>So far my idea is to replace all text nodes within hit element with their copy where each word is wrapped in a DOM element (don't know which one yet) and then call <code>$(document.elementFromPoint(e.clientX, e.clientY))</code> again to get the element that contains only the word under mouse. <br>But that seems like a complicated plan and I wonder whether I am missing something simpler. </p>
