1 LOC
GitHub 0★
Categories
Array
Date Time
DOM
Function
Math
Misc
Number
Object
Random
String
Validator
Ad
Get the selected text
JavaScript version
const
getSelectedText
=
(
)
=>
window
.
getSelection
(
)
.
toString
(
)
;
Get the position of an element relative to the document
Go back to the previous page