/1-loc
/DOM
GitHub 6521★
Get the selected text
JavaScript version
const
getSelectedText
=
(
)
=>
window
.
getSelection
(
)
.
toString
(
)
;
Go back to the previous page
Hide an element
Follow me on
Twitter
and
GitHub
to get more useful contents.