dirName

The dirName property of the HTMLInputElement interface is the directionality of the element and enables the submission of that value. It reflects the value of the element's dirName attribute. This property can be retrieved or set.

MDN Reference