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.
To under
The jQuery selector $('[id]') will get all the elements with an id attribute:
$('[id]')
id
$('[id]').each(function () { do_something(this.id); });
Working example here: http://jsfiddle.net/RichieHindle/yzMjJ/2/