« Return to Thread: Get text under the mouse pointer via javascript

Get text under the mouse pointer via javascript

by Nilanthi Seneviratne :: Rate this Message:

Reply to Author | View in Thread


Hi,

I was wondering if it is at possible to get the word a user clicks on
with javascript. For example if I click on "word" (note that it isn't
inside a span, div or anchor element), the script would display
"word".

Another way of doing this would be to get the coordinates of the mouse
and find the word which is at that point or the closest word to it.

Is it possible at all? Please help

cheers,

Nilu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Get text under the mouse pointer via javascript

LightInTheBox - Buy quality products at wholesale price!