'dir' Example : dir « Javascript Properties « JavaScript Reference

'dir' Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.all.myP.dir = "rtl";
}
</script>
<p id="myP" onload="function1();">ARABIC OR HEBREW IN TEXT THIS</p>
</body>
</html>

    
      
      








Related examples in the same category

1.'dir' Syntax and Note
2.'dir' Possible Values
3.'dir' is applied to