View Single Post
Old 06-19-2003, 02:30 PM   PM User | #2
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
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
brothercake is offline   Reply With Quote