This works in firefox, but IE says I need an Expected identifier with
fullname_msg.for = 'fullname';
IE specifically shows that it doesn't like for. Any reason why this happens?
Some browser implementations allow some of them, others add their own reserved words. I just avoid them.
There are some 'safe' aliases-
'htmlFor' for 'for', 'className' for 'class' and 'styleFloat' or 'cssFloat' for 'float' are common examples.
So for it to work properly without a reserved word clash it needs to be written as:
fullname_msg.htmlFor = 'fullname';