<script> html = 'text text text'; document.getElementById("text_here").innerHtml = html; </script> <div id="text_here"></div>