My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-property
DocumentDirProperty  
The document.dir property

Values

The document.dir property returns a string.

This property is read/write.

Usage

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(document.dir) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Comment by brettz9, May 15, 2009

This seems to need a better test... In Firefox 3.0.10 and 3.5b4, for example, document.dir always returns "ltr" even if the document is "rtl"...


Sign in to add a comment
Hosted by Google Code