I want to get the value selected by the user. My only example is what Google Translation Extension do :
I don't find another post on this, so I ask here, how can I do this.
I want to get the value selected by the user. My only example is what Google Translation Extension do :
I don't find another post on this, so I ask here, how can I do this.
After searching and a lot of test, the solution is to use :
window.getSelection().getRangeAt(0).toString()