Heim > Artikel > Web-Frontend > IE6不能修改NAME问题的解决方法_javascript技巧
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.
也就是说,你得这么写