[Modifying attributes after a createElement call]
Some browsers have a problem assiging names to dynamically created input
elements in this way. You should define the name like so:
var checkbox = document.createElement('<input name="chName">');
Whilst Microsoft may support that syntax, it is *not* correct. The
argument is the element name only.
I can't test with Mozilla at the moment, but Opera returns undefined[1]
with such a call, so the approach cannot be recommended at all.
Mike
[1] I'm surprised it didn't throw an exception.