Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get selected text

const getSelectedText = () => window.getSelection().toString();
Source by javascript.plainenglish.io #
 
PREVIOUS NEXT
Tagged: #selected #text
ADD COMMENT
Topic
Name
2+8 =