<script> function myFunction() { var x = document.createElement("BUTTON"); var t = document.createTextNode("Click me"); x.appendChild(t); document.body.appendChild(x); }