Is there an event for situations when something is selected on an HTML page, for example, arbitrary text inside an element span? Is there such a thing, or is regular-interval survey and analysis required window.getSelection()?
I would like to capture this type of event from a browser extension (Chrome).
source
share