HTML DOM
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
Browser compatibility
See also
- HTMLInputElement.selectionDirection property
- HTMLTextAreaElement.selectionStart property
- HTMLTextAreaElement.selectionEnd property
- HTMLTextAreaElement.setSelectionRange method
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
