How to get a word under cursor using JavaScript?

If I for example have <p> some long text </p> on my HTML page, how can I know that cursor of mouse is for example above the word 'text'?