Javascript Reference
Categories: STYLE

javascript STYLE blockDirection

@March 15, 2008, 1:22 a.m.
blockDirectionFirefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

Read-only  

Returns the writing script direction of the current element. Available as a property of the IE currentStyle object only.

 
Example
 
if (document.getElementById("myDIV").style.blockDirection = "rtl") {
    // process right-to-left text
}
 
Value

String constant values: ltr | rtl.

 
Default

ltr


Powered by Linode.