Read more

How to get the currently selected text in Javascript

Dominik Schöler
February 10, 2017Software engineer at makandra GmbH

Simple:

window.getSelection().toString();
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Browser support: IE9+, Android 4.3+, Safari 5+

Posted by Dominik Schöler to makandra dev (2017-02-10 12:20)