Javascript: How to detect if a word is highlighted
Posted
by
fterh
on Stack Overflow
See other posts from Stack Overflow
or by fterh
Published on 2011-01-17T10:49:28Z
Indexed on
2011/01/17
10:53 UTC
Read the original article
Hit count: 190
I'm writing a Firefox addon that is triggered whenever a word is highlighted. However I need a script that detects when a word is highlighted, and I'm stuck. An example would be nytimes.com (when you're reading an article and you highlight a word, the reference icon pops up). However the nytimes.com script is super complex. I'm 16 and not much of a programmer, so that is definitely way out of my league.
© Stack Overflow or respective owner