0

I want to get the value selected by the user. My only example is what Google Translation Extension do :

example with Google translation

I don't find another post on this, so I ask here, how can I do this.

Catif
  • 33
  • 6

1 Answers1

0

After searching and a lot of test, the solution is to use :

window.getSelection().getRangeAt(0).toString()
Catif
  • 33
  • 6