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

dir

Description

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

Can be set, to either "ltr", "rtl", or "auto" to replace the html element's dir attribute's value.

If there is no html element, returns the empty string and ignores new values.

Syntax

document.dir [ = value ]

Examples

1 · get

2 · set