Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get Selected Text

const getSelectedText = () => window.getSelection().toString();

getSelectedText();
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Get #Selected #Text
ADD COMMENT
Topic
Name
2+1 =