HTMLTextAreaElement: selectionDirection property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("HTML DOM")}}

The **selectionDirection** property of the {{domxref("HTMLTextAreaElement")}} interface is a string that indicates the direction in which the user is selecting the text.

For general information about this property, see {{domxref("HTMLInputElement.selectionDirection")}}.

Value

A string: "forward", "backward", or "none".

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("HTMLInputElement.selectionDirection")}} property
  • {{domxref("HTMLTextAreaElement.selectionStart")}} property
  • {{domxref("HTMLTextAreaElement.selectionEnd")}} property
  • {{domxref("HTMLTextAreaElement.setSelectionRange")}} method