Answers for "how to get highlighted text only using javascript example"

4

get selected text js

// Get highlighted text this way:

window.getSelection().toString()
Posted by: Guest on April-08-2020

Code answers related to "how to get highlighted text only using javascript example"

Code answers related to "Javascript"

Browse Popular Code Answers by Language