How can I iterate through all forms in a document using javascript?
You can use
document.forms collection
document.forms
See forms Collection