How can I get the word(text) under mouse pointer from my web page? I want to get the exact word under the mouse pointer from an html page & send it for further processing.
I am able to get current position of the mouse pointer on the html form... But then how to get the text at that position...? this text can be from the text box, toolbar, caption of button anything from my form
posted 10 years ago
You could get it if they highlight th word with createText range, but you will not be able to figure out the word with just the mouse position. Different resolutions and such will not all you to do that. You could rip apart the entiore document.Add spans with mouseovers, but you are talk a long process that will make you users wait forever.
Won't you be my neighbor? - Fred Rogers. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user