Javascript examples for DOM:Element innerText
Show Arabic characters via innerText attribute
<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>