Loading

Get a English Word under mouse cursor with Javascript

Get a English Word under mouse cursor with Javascript

event.target.innerHTML.substring(event.target.innerHTML.lastIndexOf(" ",event.rangeOffset),event.target.innerHTML.indexOf(" ",event.rangeOffset));

+

Mouse Cursor in Pixel by event.clientX and event.clientY.

can make popup english to burmese dictionary when you point to english words.

just an idea.

:-)

2 comments:

Bashroan said...

Would be great if there is any function for desktop like this. Any?

မာ့ခ္ said...

doing such things on browser is tricky, on desktop it should b easy.
you can get hWND under your mouse. can get anything, not sure with Vista though.

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား