I would like to be able to use javascript to find every id (or name) for every object in an html document so that they can be printed at the bottom of the page.
well, since it is a form,
im sure that you want to iterate only over the form elements and not all the tags in the document ( like href , div's etc.. )
for (var i=0; i < form.elements.length; i++) {
var elementId = form.elements[i].id;
}