use "text" instead of "innerHTML", also, move the code into onload event handler, for example:<script>
function window.onload()
{
       var qqScript= document.createElement("Script");
       qqScript.id="QQscript";
       qqScript.language="JavaScript";
       qqScript.text="function t(){alert('dffd')}";
       document.body.appendChild(qqScript);
}
</script>