3

I need to get the selected text on a document without using JQuery. Is there a way i can like do document.selectedtext or something?

1 Answers1

2
window.getSelection();

U'll need to turn it into a string after that.

Isaiah Taylor
  • 615
  • 1
  • 4
  • 17