The JavaScript method getElementsByName is useful, among other things, for selecting and processing form elements within a website.
However, if the getElementsByName method does not return any results, you should check which object you are applying the method to. It only works with document and XMLDocument objects and is therefore not suitable for searching within HTML elements.
