The NAME attribute cannot be set at run time on elements dynamically created with the createElement method. To create an element with a name attribute, include the attribute and value when using the createElement method.
调试欢乐多
<SCRIPT LANGUAGE="JavaScript">
<!--
var obj = document.createElement("<INPUT name='aa'>");
document.forms[0].appendChild(obj);
obj.type = "text";
obj.value = "false";
alert(document.forms[0].aa.value);
//-->
</SCRIPT>