I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in English (US).

The Document.dir property is a DOMString representing the directionality of the text of the document, whether left to right (default) or right to left. Possible values are 'rtl', right to left, and 'ltr', left to right.

Syntax

dirStr = document.dir;
document.dir = dirStr;

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'Document.dir' in that specification.
Living Standard Initial specification

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge Full support YesFirefox Full support Yes
Notes
Full support Yes
Notes
Notes Incorrect behavior before Firefox 23.
IE Full support YesOpera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support Yes
Notes
Full support Yes
Notes
Notes Incorrect behavior before Firefox 23.
Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.

See also

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: sideshowbarker, fscholz, erikadoyle, teoli, Sebastianz, Brettz9, jsx, nairakhil13, Sheppy, ethertank, vali29
Ultima modifica di: sideshowbarker,