HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

dir

Description

The dir of HTMLElement for JS returns the element's dir attribute's value, if any.

Can be set, to either "ltr", "rtl", or "auto".

Syntax

element.dir [ = value ]

Examples

1 · get

2 · set