'blockDirection' Example : Text Direction « Document « JavaScript DHTML






'blockDirection' Example

    
<html>
<body>
<p id="myP" blockDirection="rtl" onClick="function1();">
Click in this text that must be read from right to left.
</p>
<script language="JavaScript">
    function function1() {
        var m = document.all.myP.blockDirection; 
        alert(m);
    }
</script>
</body>
</html>

    
      
      








Related examples in the same category