why the hell is name attribute deprecated? whats the alternative? hans_henrik, Are you trying to link to a given location within a document? according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a , name is deprecated in favor of id, but they dont fking do the same thing And it's also been obsolete for about 14 years now. id must be unique, name can be shared Yes, they do the same thing. umm And it wouldn't even make sense to have multiple name= elements like that anyway, because they'd still have to be unique. Anyway, links to i dont recall any document.getElementByName , i do however, recall a document.getElementsByName , and i dont recall any document.getElementsById , but i do recall a document.getElementById as far as javascript's concerned, names are expected to be shared, and ids are expected to be unique.. does html4 specs state that names must be unique? i really dont know, but i highly doubt it s/javascript/DOM/