Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<p><bdo id="myBdo" dir="ltr">This paragraph goes left-to-right.</bdo></p>  
<p>Click the button to change the text direction of the text inside the bdo element.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
  document.getElementById("myBdo").dir = "rtl";
}
</script>
</body>
</html>