cards
Decks
makandra dev
Sign in
Sign up
Menu
next card
Return to search results
previous card
How to get the currently selected text in Javascript
Posted
2017-02-10
. Visible to the public.
Simple:
window.getSelection().toString();
Browser support: IE9+, Android 4.3+, Safari 5+
stackoverflow.com
Dominik Schöler
makandra.de
Say thanks
11
Last edit
2017-02-10
Dominik Schöler
License
Source code in this card is licensed under the
MIT License
.
Posted by Dominik Schöler to makandra dev (2017-02-10 11:20)
This website uses short-lived cookies to improve usability.
Accept
or
learn more