Forum Moderators: open
You could create an array of all elements with names and use this array to find the string you feed into the function.
You'd start of with something like this:
var allNames = new Array();
var allNames = document.getElementsByName("*");
So now you have an array (allNames) which contains all the named objects in your document.
You can then loop through all the array items:
for(1=0;a<allNames.lenght;i++)
And search for your string.
HTH
Actually there's a couple more typos there:
for(i=0;[blue]i[/blue]<allNames.[blue]length[/blue];i++) This line is excess to requirements:
var allNames = new Array(); Firstly,
allNames would be assigned a new value, more importantly, getElementsByName doesn't return an array, but a collection.