this code working well in IE, you may be block activeX control or script.. please check it while loading of page.. otherwise its working fine.
<script>
function myFunction()
{
var btn=document.createElement("input");
var t=document.createTextNode("CLICK ME");
btn.appendChild(t);
document.body.appendChild(btn);
};
</script>
<body>
<p id="demo">Click the button to make a BUTTON element with text.</p>
<button önclick="myFunction()">Try it</button>
</body>