Forum Moderators: open
thanks everyone i didnt know it had to be getElementById for style but i figured it out thanx
you don't have to use getElementById for style but it's easier to find your object by id since id are unique.
you could always use getElementsByName which will create an array of all names you ask it to look for in the document and set style to that.
this (DOM:document.getElementsByName [developer.mozilla.org]) shows you how to use it though using getElementById is probably your best bet.