0

Is it possible in JavaScript to know if the text of a specified DOM element is selected/highlighted by the user? I don't want to get the selected text (like in Get the Highlighted/Selected text), but just know if the element is selected/highlighted.

Community
  • 1
  • 1
johanvs
  • 4,273
  • 3
  • 24
  • 26

0 Answers0