getSelectedText() | JavaScript

austinleath

January 20th, 2021 12:39:32 AM

					
// Get the text that the user has selected const getSelectedText = () => window.getSelection().toString(); getSelectedText();

Featured Posts