<!DOCTYPE html> <html> <body><script> window.onload = function() { var a = document.createTextNode("a "); var b = document.createElement("input"); var c = document.createTextNode(" c"); document.body.appendChild(a); document.body.appendChild(b); document.body.appendChild(c); } </script> </body> </html>