<html> <body> <script language="JavaScript"> function function11() { var myNode = document.createTextNode("New Text Node"); document.body.appendChild(myNode); } </script> <button onclick="function11();">Create text node</button> </body> </html>