MDN self-hosted library · e01.org

HTMLTextAreaElement: selectionDirection property

HTML DOM

no runnable cells web-api-instance-property upstream source

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