JS: getElementById not working? : I have a function like this

        function f(el){
           var a = el.getElementsByName("name");
        }
I know that I can use `arguments` for this but what if I want to do it like the method above? Thanks!
Also no jQuery please
