|
getElementsByName indexes objects by their NAME attribute, not their ID - an ID must be unique, but a NAME can be used for multiple elements, hence getElementsByName forms a collection where getElementById is a single object.
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
|