<html>
<head>
<script>
function boom()
{
var d = document.getElementById("d");
d.style.direction = "rtl";
}
</script>
</head>
<body onload="boom();">
<div id=d style="white-space: pre;">
e
</div>
</body>
</html>