HTMLTextAreaElement: selectionDirection property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The selectionDirection property of the HTMLTextAreaElement interface is a string that indicates the direction in which the user is selecting the text.
For general information about this property, see HTMLInputElement.selectionDirection.
Value
A string: "forward", "backward", or "none".
Specifications
| Specification |
|---|
| HTML> # dom-textarea/input-selectiondirection> |
Browser compatibility
See also
HTMLInputElement.selectionDirectionpropertyHTMLTextAreaElement.selectionStartpropertyHTMLTextAreaElement.selectionEndpropertyHTMLTextAreaElement.setSelectionRangemethod