'writing-mode' Example
<html> <body> <div id="myD" style="width:100%; background-color:beige;"> This is sample text. </div> <br> <input type="button" value="Set writing Mode property to tb-rl" onclick="myD.style.writingMode='tb-rl'"> <input type="button" value="Set writingMode property to lr-tb" onclick="myD.style.writingMode='lr-tb'"> </body> </html>