<html>
<body>
<p id="demo">Click the button to make a Text Node.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var t=document.createTextNode("Hello World");
document.body.appendChild(t);
};
</script>
</body>
</html>