Potevi usare anche quello,ma ti correggo è getElementsByTaName..