Javascript DOM CSS Style unicodeBidi Property get

Introduction

Return the unicodeBidi property:

alert(document.getElementById("myP").style.unicodeBidi);

View in separate window

<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>
<p id="myP" style="direction:rtl;unicode-bidi:bidi-override;">This is another paragraph.</p>

<button type="button" onclick="myFunction()">Return the unicodeBidi property</button>

<p id="demo"></p>
<script>
function myFunction() {/*w  w  w  .  j  ava 2  s .c  om*/
  document.getElementById("demo").innerHTML = document.getElementById("myP").style.unicodeBidi;
}
</script>

</body>
</html>



PreviousNext

Related