N
Nisse Engström
Well, what about the situation where there is a formelement or a form,
or whatever with the name "redBook" and also an id="redBook" elsewhere?
I don't know how IE solves that (nor care).
It is simply better to be clear AND stick to the standards, and thus use
getElementById.
I tend to agree, but is it really better?
In IE, getElementById("redBook") returns the form
element, and so do older (bug compatible) versions of
Opera. Recent versions of Opera, and Firefox[1] return
the other element.
Better keep names and ids unique.
/Nisse
[1]: The one version I have installed.