Subj : Re: Shouldn't getElementById use name attribute of INPUT control? To : netscape.public.mozilla.jseng From : Martin Honnen Date : Sun Sep 12 2004 01:37 pm Larry Wynne wrote: > HttpUnit seems to only look for the "id" attribute of an HTML element > when executing the getElementById javascript and doesn't recognize the > "name" attribute. In a browser this method will work for both "id" and > "name" attributes. Then the browser is not following the W3C DOM specification, it is probably IE on Windows that does that. Try document.getElementsByName('field').item(0). -- Martin Honnen http://JavaScript.FAQTs.com/ .