Originally posted by thara nambiar:
I dont think its bad coding. Document.all is used in IE4. Other browsers
were not supporting this at that time.Now Mozilla supports this.
I am not going to go browser war talk here!
It was bad coding since you could reference document.all and get a name and id, and so on. You could get an array of ids, but ids are supposed to be singular. IE had a lot of quirks that document.all abused. And hence bad coding. Feel free to use it along with document.layers. We are not in the world of IE4 and NN4 days. We are in the world of browsers that should be following standards. IE still has a way to go, but it is closer. I am an IE guy, use IE as my everyday browser so do not say I am an IE hater. My last job, we only coded for IE.
And we are going with this right now:
http://www.ecma-international.org/publications/standards/Ecma-262.htm so it really is not JavaScript that we use, but we keep the name.
Eric