Show Arabic characters via innerText attribute - Javascript DOM

Javascript examples for DOM:Element innerText

Description

Show Arabic characters via innerText attribute

Demo Code

ResultView the demo in separate window

<html lang="ar-AR" dir="RTL">
   <head> 
      <meta charset="utf-8"> 
      <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> 
   </head> 
   <body> 
      <div id="div-msg" style="width:100%; height:200px; background:yellow"> 
      </div> 
      <script type="text/javascript">
        document.getElementById('div-msg').innerText = "your unicode character";
    /*  w ww  .  ja v a 2s  . co  m*/
      </script>  
   </body>
</html>

Related Tutorials